The Execute function starts another application.
Syntax
Execute path
[, timeout] [, window_style]
Parameters
path—A string
parameter specifying the complete path to the application to be
started.
timeout—An optional long integer specifying the time in seconds to allow before control returns to Integration Manager. If this parameter is not included, the default timeout of 30 seconds is used. If the value –1 is used, the application launches asynchronously without any timeout value.
window_style—An optional integer specifying how the application to be executed appears. Use one of the following values:
Value |
Description |
0 |
The window is hidden and focus is passed to the hidden window. |
1 |
The window has focus and is restored to its original size and position. |
2 |
The window is displayed as an icon with focus. |
3 |
The window is maximized with focus. |
4 |
The window is restored to its most recent size and position. The currently active window remains active. |
6 |
The window is displayed as an icon. The currently active window remains active. |
Comments
To have an application
run silently, use the value 0 (zero) for the
window_style.
Example
The following example is
the After Integration script for an integration. It executes the
PostProc.bat file, which performs some post processing actions.
Execute “C:\Program Files\Microsoft Dynamics\Integration Manager\PostProc.bat”, 60,0