Using ShellExecute



I am using ShellExecute to start a batch program, where the call on the program contains filenames for the input (a set of commands) and the output file. After the call, I want to process the output file. Evidently, my program (written in D7) goes on with its own operations without waiting for anything, with the result that the output file is empty right after the call on ShellExecute. The operations in the batch program may vary in respect to time, sometimes quite lengthy (actually, it is a statistical system called R, very nice).

Now, is there some way of checking if the batch program is finished so I can delay my program until the batch program is finished? Some API call using the handle perhaps?

Tom
.



Relevant Pages

  • Re: Using ShellExecute
    ... program contains filenames for the input (a set of commands) and the output ... I want to process the output file. ... is there some way of checking if the batch program is finished so I ...
    (borland.public.delphi.non-technical)
  • Re: Batch Programing Help
    ... I am new to batch program and i need help to get started. ... If you know how to write DOS-type commands, you know how to write a batch ... Ken Blake - Microsoft MVP Windows: Shell/User ... Please reply to the newsgroup ...
    (microsoft.public.windowsxp.general)