I am using shellexecute to run a command and using '>' to output the displayed text to a text file.
The problem I have is that the file is missing text as my program continues on to open the file and parse the text.
How can I get my program to pause until shellexecute is finished?
I can declare a sleep which does work after a fashion but I have to estimate the longest time it will take.
It would be better if I could monitor the file size with a Do While function until the file size has stopped increasing.
Any suggestions?
Alastair
The problem I have is that the file is missing text as my program continues on to open the file and parse the text.
How can I get my program to pause until shellexecute is finished?
I can declare a sleep which does work after a fashion but I have to estimate the longest time it will take.
It would be better if I could monitor the file size with a Do While function until the file size has stopped increasing.
Any suggestions?
Alastair