earlrainer
Programmer
Hi all,
I've got into a teeny weeny problem.
I execute a lot of batch files through my delphi program.
my problem is that I have to call the batch files in a particular order..meaning I first call batchfile1.then i have to wait till it is over ,then i do some processing and then i call batchfile2...and so on(I use winexec to run the bachfiles).
I use the following method..I create a temporary file c:\a.txt before I call batchfile1.
in batchfile1 I delete this file at the end.
in my delphi program i write like this
while fileexists('c:\a.txt') do
application.processmessages;
I have 1 problem due to this..
somehow this method seems to take too much resources.
the program hangs while in the loop.
is there a more efficient way to do this.
Bye
I've got into a teeny weeny problem.
I execute a lot of batch files through my delphi program.
my problem is that I have to call the batch files in a particular order..meaning I first call batchfile1.then i have to wait till it is over ,then i do some processing and then i call batchfile2...and so on(I use winexec to run the bachfiles).
I use the following method..I create a temporary file c:\a.txt before I call batchfile1.
in batchfile1 I delete this file at the end.
in my delphi program i write like this
while fileexists('c:\a.txt') do
application.processmessages;
I have 1 problem due to this..
somehow this method seems to take too much resources.
the program hangs while in the loop.
is there a more efficient way to do this.
Bye