Promotic
WikipediaLinkedInYoutubeTwitterFacebook

CreateProcess - method of the Pm object

Description:
Starting the program (*.exe, *.com, *.bat) without waiting for the termination.
Syntax:
Boolean CreateProcess(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 and 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 and folders.

Return values:
true - If the program has been started.
false - If the program hasn't been started.
Note:
- After calling this method (starting the program) an algorithm continues (it doesn't wait for the termination of thus started program).
- To terminate the external program the Pm.WndOper method can be used.
 
This method is not functional in Web panels.
See also:
Example:
Launching the OS Windows program "Calculator". It is not necessary to enter the complete path to calc.exe because this program is located in Windows system folder (in "/Windows/System32").
JavaScriptVBScriptSelect and copy to clipboard

Pm.CreateProcess("calc.exe", ".");
PROMOTIC 9.0.15 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
Navigation:
 
- Pm
 
- Abs
- Cos
- CreateProcess
 
 
- E
- Exp
- LN2
- PI
- Pow
- Sin
- Tan
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice