Available in:
Apps (win)
Apps (char)
Reportwriter
RPC
Standalone PL
X
void winexec(command[,wait]) string command int wait
command | specifies the command to execute. If you do not want to provide a fully qualified path to the executable, then use the os_add_path entry in the dv.ini file to specify the executable's directory.
|
wait | (optional) specifies timing. If it is true (non-zero), the executed command must terminate before the application can continue (synchronous). Default is asynchronous. |
winexec("c:\bin\aprg -a");To run a command, use cmd:
winexec("cmd /c mkdir c:\tmp");