This applet demonstrates the Windows Shell code. You can change the run method parameter (WAIT_PRGM_CLOSE) so that:
a) the applet waits until the program finishes before continuing (WAIT_PRGM_CLOSE = TRUE), or
b) the applet continues directly after starting the program (DEFAULT) (WAIT_PRGM_CLOSE = FALSE).
This applet will execute notepad.exe (if exists in your Windows folder). See below the run method details.
The Run() method of the Shell object takes three parameters:
Parameter 1: is the command line to run any program.
Parameter 2: is an integer, which sets the window type for that program.
Here, we use the value 1, which displays the program's window and gives it the focus. (The value 6 will minimize the window without giving it the focus.)
Parameter 3: can be True or False. If True, the applet will wait until the program is closed or done before continuing to the next line (set the WAIT_PRGM_CLOSE constant).
INTEGRATIONS: GroupWise Main Toolbar.
*The installation file contains one or more Formativ applets, a brief help text file and any data required by the solution.
Note: To run the free applets available on this page, you will need to install one of the Formativ products below:
Visit the Formativ Applet Central site for more information.