> I would like to place in the oncreate method of a form a check to see if a
> file exists.  If it does not then I would like another program to
> run before
> continuing to run my delphi app.
>
> I can check to see if the file exists and activate shellexecute,
> but how do
> you stop my delphi app from continuing?

Try the Win32 function CreateProcess() and then WaitForSingleObject() on the
handle it returns. Don't forget to call CloseHandle(). Documentation for the
above functions should be readily available.

Roger,

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to