Promotic
WikipediaLinkedInYoutubeTwitterFacebook

CreateProcess - method of object Pm

Description:
Starting another program (*.exe, *.com, *.bat) without waiting for the termination.
Syntax:
CreateProcess(sCmdLine As String, sCurrent As String) As Boolean
Calling:
b = Pm.CreateProcess(sCmdLine, 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:
- This method is not functional for Web Panels.
- 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.OtherAppOper method can be used.
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").
Pm.CreateProcess "calc.exe", "."
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