# CMDret [v1.10 beta]

Author: corrupt, Laszlo, shimanov, toralf, Wdb Last Modified: 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)

For more details of the functions's parameters and return value, please see it's source code.

#### Remarks

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

For update's details and remarks related to the functions, please see the AutoHotkey Forum: http://www.autohotkey.com/forum/viewtopic.php?t=8606

#### License

nonexistent

#### Example

    ; #Include CMDret.ahk
    #NoEnv
    SendMode Input
    SetWorkingDir %A_ScriptDir%

    MsgBox % CMDret_RunReturn("cmd /c dir c:\")