Run_Application

Starts an application with the flags (optional) or a known type file with no flags. Specifying the full path to the application or file is recommended.

Parameters

Value1

The path to the application (a string).

Value2

The flags to run the application (a string).

Value3

Boolean (Wait Until Exit).

Format

Run_Application ("String", "String", Boolean)

Returns

If the application fails to start, a value of -1 will be returned.

If the \"Wait Until Exit\" value is TRUE, the value returned will be the exit code for the application. Otherwise, a value of 0 will be returned.

Example

Script( Run_Application_Test )
String( strExit )
Number( nExitCode )
Activate( From_Menu )
nExitCode = Run_Application( "Notepad.exe", "", TRUE )
strExit = Number_To_String_Decimal( nExitCode )
Ask_OK( strExit, "Exit Code" )
Return

 


Was this article useful?    

The topic was:

Inaccurate

Incomplete

Not what I expected

Other

© 2016 Wavelink Corporation. All Rights Reserved.