strCommand : Environment variables within the strCommand parameter are automatically expanded.
intWindowStyle : Optional. Sets the window style of the program being run.
bWaitOnReturn : Optional. If bWaitOnReturn is not specified or FALSE, immediately returns to script execution rather than waiting for the process to end.
If bWaitOnReturn is set to TRUE, the Run method returns any error code returned by the application.
If bWaitOnReturn is not specified or is FALSE, the Run method returns an error code of 0 (zero).
The following example executes notepad application and waits until closed:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.