Re: Using ShellExecute



Pete Fraser wrote:
"Tom Backer Johnsen" <backer@xxxxxxxxxxxx> wrote in message news:447fef7b@xxxxxxxxxxxxxxxxxxxxxxxxx
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).

Thanks for the tip. With the example I found the corresponding Object Pascal code on the net:

http://www.latiumsoftware.com/en/pascal/delphi-1.php

(Towards the end) Now, the next step is to get it working.

Tom
.



Relevant Pages

  • Re: Ahve got them Function Pointer blues
    ... struct FS ... My problem is that the <function pointer> is of unknown type - in ... and producing an output file. ... The commands will be, for example ...
    (comp.lang.c)
  • Re: Ahve got them Function Pointer blues
    ... and producing an output file. ... The commands will be, for example ... forth-like stack, with each stack element being a ... structure, which contains, among other things, a pointer to the function ...
    (comp.lang.c)
  • Re: Clone iMacs?
    ... and in unix, everything is a file. ... On 3/28/07, David Stubblebine wrote: ... I am just not sure about the commands. ...
    (Ubuntu)
  • RE: Send output to file & printer
    ... > do I have to run two commands? ... echo "OUTPUT to $outfile" ... # output file to screen first and then confirm we wnat to print it ...
    (Debian-User)
  • 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)