Update cookies preferences
Promotic

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.
See also:
- Pm.CreateProcess (method)
Example:
JavaScriptVBScriptSelect and copy to clipboard

Pm.CreateProcessSync("#cfg:configapp.bat", "#cfg:");
PROMOTIC 9.0.31 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
Navigation:
 
- Pm
 
- Abs
- Cos
- CreateProcessSync
 
 
- E
- Exp
- LN2
- PI
- Pow
- Sin
- Tan
© MICROSYS, spol. s r.o.