
simLaunchExecutable
Description
|
Launches an executable. Similar to os.execute or io.popen, but is system independent. |
C synopsis
|
- |
C parameters |
-
|
C return value
|
-
|
Lua synopsis
|
number result=simLaunchExecutable(string filename,string parameters='',number showStatus=1) |
Lua parameters |
filename: file name of the executable
parameters: optional input arguments
showStatus: 0 to hide the application's window, 1 to show it. Works only with Windows OS.
|
Lua return values
|
result: -1 if operation was not successful. Under Windows OS, if the application could not be launched, return value is -1. Under Mac OS or Linux, return value might be different from -1 even if the application could not be launched.
|
All regular API functions on one page
|