Runs an external program.
Run ( "filename" [, "workingdir" [, flag]] )
Parameters
filename | The name of the executable (EXE, BAT, COM, or PIF) to run. |
workingdir | [optional] The working directory. |
flag | [optional] The "show" flag of the executed program: @SW_HIDE = Hidden window @SW_MINIMIZE = Minimized window @SW_MAXIMIZE = Maximized window |
Return Value
Success: The PID of the process that was launched.
Remarks
To run DOS (console) commands, try RunWait(@ComSpec & " /c " & 'commandName', "", @SW_HIDE)
Related
RunAsSet, RunErrorsFatal (Option), RunWait
Example
Run("Notepad.exe", "", @SW_MAXIMIZE)