Monitoring a created process and get notified when it is finished.

Apr 23, 2013 at 8:04 PM
I am launching an exe and want to be notified when it has finished before doing anything else in my application.

Here is how I am launching the exe on the Windows Mobile device:

remoteDevice.CreateProcess(myExe, "", ProcessCreationFlags.None);

Thanks in advance!
Apr 23, 2013 at 10:28 PM
Oct 21, 2013 at 6:36 PM
What I did to get around this was use RAPI2's CreateProcess method to start a .BAT file on the remote device.

The .BAT file really only needs two lines --

echo 1 >> IsDone.txt

Have the desktop application looping waiting for the IsDone.txt file to exist. You're done. =)