 |
 |
Screenshots |
|
|
 |
Downloads |
|
|
 |
Resources |
|
|
 |
|
|
 |
|
|
|
 |
|
|
There are several ways to run multiple programs using IntraLaunch. You can have a single
HTML link run one or more programs, or use a single IntraLaunch object to execute many programs - there is a different.
The following examples demonstrate the possibilities.
You can execute a second application only after a first one closes using the "Delay" parameter. The example
below shows an object that will run Word, then Excel after and only after Word closes. This example logs activity to a
run.log in the workstations Windows directory and also will bring Excel to the foreground if its already running.
If Word fails to run the message box will show the error message "Could not run
Word" and IntraLaunch will not attempt to execute the second application. To execute the second application even
if the first one fails
use the "WaitContinue" option for Delay instead of just "Wait".
Notes:
Most macros are also supported for Delay_Run.
Be aware that a some programs are stubs, such as explorer.exe. If specifying explorer.exe for "Run" IntraLaunch
will execute explorer and then immediately continue on and execute the program for "Delay_Run" because explorer.exe
spawns something else and quits immediately.
IntraLaunch version 4.3 and higher required.
You can also pause Javascript until a program closes with the example below. The first alert will
show when starting notepad, then the second alert will only show when notepad closes. The IntraLaunch:DoNothing
macro requires IntraLaunch 4.7 or higher.
An HTML link can also execute several programs by using a Java/VBScript function. A time delay between the different
program executions can be specified with the Pause parameter. Word will run four seconds after Excel.
A single object can be used to run different programs by passing the
program to run as a parameter. For example, the program 'notepad' with the switches /a and /b
is executed below. Another HREF could just as easily execute wordpad, without the need to create another
IntraLaunch object. The Run param is set to 'Null'.
If passing a full path, you might need to use two backslashes
because the first one is treated as the escape character. For example IntraLaunch.ExecuteIt('%mydocuments%\\letter.doc').
Variables can also be passed to ExecuteIt and will be parsed for replacement.
You can use this idea to create a run type dialog box right on a web page similar to the following.
The program specified from the text box is passed to an IntraLaunch object similar to above with Javascript.
|