ExecuteAndWait
Sub ExecuteAndWait($program As String, $param As String, $hidden As Boolean) As Integer
Executes the application specified in $program and waits until the execution has finished.
$param contains the parameters that are passed to the application specified in $program. If the program should be executed without displaying a user interface, $hidden must be set to TRUE.
If the function fails, the return value is an error value that is less than or equal to 32. If the function succeeds, the return value is the instance handle of the application that was executed.
This function has a maximum timeout of 300 seconds, which is 5 minutes. If the executed program is not finished after 300 seconds, the result of this function is -1, and the execution of the Plugin continues. However, the specified program continues to run and is not terminated by WebSite-Watcher.
Parameters
- $program ... String expression that specifies the absolute path and file name of the program to execute.
- $param ... String expression that specifies the command line parameters.
- $hidden ... Boolean value. If set to TRUE, the window of $program is hidden.
Example:
ExecuteAndWait("e:\exp\conv-rss.exe", "/f=e:\exp\temp.rss", True)