Хм, открываем документацию, и одной из первых команд видим то, что нам нужно:
Цитата:
shu.System.exec(filename:String, showGui:Boolean=false):Number
Overview:
Executes an external application and waits for it to exit.
Parameters:
filename - String specifing path to an application to execute.
showGui - Boolean specifing whether to display the application's GUI.
Returns:
The exit code of the program launched.
|
Цитата:
shu.System.execAsync(filename:String, showGui:Boolean=false):Number
Overview:
Executes an external application asynchronously. The return value is the application process ID which can be used to check if the application is still running by calling shu.System.isRunning.
Parameters:
filename - String specifing path to an application to execute.
showGui - Boolean specifing whether to display the application's GUI.
Returns:
The process ID of the launched application.
|