I use launch to run batch (.bat) files that are dynamically written in Rev. Batch files are run using command.com (the command prompt in windows). In my case I use the batch files to execute PHP scripts using the command line interface (CLI) in PHP. This is fantastic as it allows me to run numerous simultaneous processes. FYI: The PHP CLI itself also supports multi-threading (since PHP5). Once each batch file has completed execution, each command.com window simply closes.
I have built a control panel of sorts in Rev to gather the settings (criteria etc) that I pass as arguments to PHP via the batch file. In respect of my UI, I would like to 'tick' off the completed tasks, but to do so I need some intelligence on the application instances I have launch-ed from Rev.
Is there a way to identify an application instance spawned with launch, and further detect the status of an application instance opened with launch. This would allow me to update the user interface at 'mission control' with news about each individual mission.

Sample code...generic implementation
Code: Select all
open file tBatchFile for write
put "cd\"&cr into varContent
put "cd Program Files\PHP5"&cr after varContent
put "php.exe -f somephpfile.php" && quote & tSomeStringArgument & quote && tSomeNumericArgument && quote & tAnotherStringArgument & quote after varContent
write varContent to file tBatchFile
close file tBatchFile
launch document tBatchFile
Kind regards, Andrew