CreateProcessSync - method of the Pm object
Description:
Launching the program (*.exe, *.com, *.bat) with waiting for the termination.
Syntax:
Boolean CreateProcessSync(String sCmdLine, String sCurrent)
Parameters:
sCmdLine | (String) Name and path to the started file ([disk:][path]program[extension] [parameter1] [parameter2] [...])
It is recommended to use the PROMOTIC path syntax - see PROMOTIC path to files or folders. |
sCurrent | (String) Current folder for the started program (current folder of the PROMOTIC application is ".").
It is recommended to use the PROMOTIC path syntax - see PROMOTIC path to files or folders. |
---|
Return value:
true - If the program has been successfully started.
false - If the program hasn't been successfully started.
Note:
After calling the method (after launching the program) the algorithm is suspended until the launched program is terminated. It means that the
execution of all algorithms in the PROMOTIC system
is stopped.
This method
is not functional in
Web panels.
Example:
JavaScriptVBScriptSelect and copy to clipboard
Pm.CreateProcessSync("#cfg:configapp.bat", "#cfg:");
Pm.CreateProcessSync "#cfg:configapp.bat", "#cfg:"