Robert,

this has worked well for us for years


{ Execute the file and evaluate result }
App_Handle := Shell_Execute (Dir, Fil, Par, Op, Minimise);
{ Wait for Abort or App Closure }
repeat
Application.ProcessMessages;
Sleep(0);
until (WaitForSingleObject (App_Handle,0) = WAIT_OBJECT_0) or Abort_Flag;



Robert Wilson wrote:


Hi

Does anyone know a way to run an application (easy enough) but to also keep a handle to the application and know when it finishes. Using D7 and have been trying 'mutexes' and 'waitforsingleobject' with no luck so far.

Regards

Robert Wilson
Software Developer



_______________________________________________
Delphi mailing list
[EMAIL PROTECTED]
http://ns3.123.co.nz/mailman/listinfo/delphi

Reply via email to