startapp


(startapp cmdline [ arguments ] )

This function starts an application cmdline at the Operating System level, optionally using arguments as additional parameter(s).

Arguments

cmdline  (string)  specifies the application to be started
arguments  (string, optional)  specifies additional arguments for the application, 

Return

integer, effectively it is the PID (Process ID) of the started application)

Example

(startapp "calc.exe")  1144
(startapp "MSExcel.exe" "name.xls")  2234

Remarks

if cmdline does not contain a full path specification, the Operating System will search for the specified application file using the standard PATH search logic



©  Bricsys NV. All rights reserved.