PDA

View Full Version : File.run waiting for child process


Alexie
03-07-2006, 09:08 PM
Hi everyone I'm new here, need some advice.

I have an exe here that launches another application and waits for it to end.

When I use file.run to launch the exe, it would return 0(success) once the exe is launched and it doesn't wait for the application to finish before returning.

Is there a way to make AMS wait for the exe's child process to end before returning?

AaronCooper
03-07-2006, 10:08 PM
http://www.indigorose.com/forums/showthread.php?t=14487&highlight=restore

There is a wait trigger. the TRUE / FALSE trigger.




Hi everyone I'm new here, need some advice.

I have an exe here that launches another application and waits for it to end.

When I use file.run to launch the exe, it would return 0(success) once the exe is launched and it doesn't wait for the application to finish before returning.

Is there a way to make AMS wait for the exe's child process to end before returning?

rhosk
03-08-2006, 05:26 AM
Hi everyone I'm new here, need some advice.

I have an exe here that launches another application and waits for it to end.

When I use file.run to launch the exe, it would return 0(success) once the exe is launched and it doesn't wait for the application to finish before returning.

Is there a way to make AMS wait for the exe's child process to end before returning?

Probably a few ways, but try the enumerate processes method with a timer - monitoring when the child process ends.