Action Statement
Execute another application.
invoke PROGRAM_NAME [COMMAND_LINE_OPTIONS]
PROGRAM_NAME
A string value representing the filename of the application you want executed. You must specify the full filename, including the extension. Valid extensions are .EXE and .PIF.
COMMAND_LINE_OPTIONS
A string value representing any options required by PROGRAM_NAME.
Description
Use this statement to execute another Windows application (or DOS application for which a Program Information File (PIF) has been defined).
Your ESL application will continue to run while the invoked program is running.
To start a non-Windows application from an ESL for Windows program, create a Windows .PIF file for the application, and specify the .PIF filename for PROGRAM_NAME.
To invoke a .BAT file from ESL for Windows, you must invoke a .PIF file that is configured to run the .BAT file. Similarly, to invoke any non-Windows .EXE file, you must invoke a .PIF file that has been properly configured.
When you use the invoke action statement to execute an application, C:\ becomes the current drive and directory.
Example
invoke "textedit.exe" "c:\\document\\memo5.doc"
invoke "database.pif"
See Also
start Action Statement
change to program Action Statement
call Action Statement