Regular API function

simLaunchExecutable / sim.launchExecutable

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=sim.launchExecutable(string filename,string parameters='',number showStatus=1)
Lua parameters
filename: file name of the executable. If the filename starts with '@', then it will be considered as a system command, otherwise the current directory might be automatically prepended to the filename if it makes sense.
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