Top  Previous  Next

function ExecuteAndWait(sProgram, sParam, bHidden) As Integer


Executes the application sProgram and waits until the execution has finished.


sParam contains the parameters to be passed to the application specified in sProgram. If the program should be executed without displaying a user interface, bHidden 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 run.




sProgram ... String expression. Absolute path and filename to the program to execute.
sParam ... String expression. Command line parameters.
bHidden ... TRUE|FALSE. Hides the window of sProgram.



ExecuteAndWait("e:\exp\conv-rss.exe", "/f=e:\exp\temp.rss", TRUE)