作者: corrupt, Laszlo, shimanov, toralf, Wdb 最近更新时间: 20061205
CMDret can be used to retrieve and store output from console programs in a variable without displaying the console window.
Here you will find AutoHotkey code based on cmdret.dll, provided as functions Exclamation instead of having to include the cmdret.dll file.
CMDret can be used to retrieve and store output from console programs in a variable without displaying the console window.
CMDret_RunReturn(CMDin, WorkingDir=0)
关于函数的参数和返回值, 请参阅其源码.
It is not strictly stdlib conform, because it uses a global variable.
It lacks an external documentation. Look for that at head of source.
DLL Version of CMDret:
* http://www.autohotkey.com/forum/viewtopic.php?t=3687
关于此函数(集)的更新细节和注意事项, 请参见 AutoHotkey 论坛: http://www.autohotkey.com/forum/viewtopic.php?t=8606
不存在
; #Include CMDret.ahk #NoEnv SendMode Input SetWorkingDir %A_ScriptDir% MsgBox % CMDret_RunReturn("cmd /c dir c:\")