Halting process of a script until cmd.exe finished - 02/08/09 09:28 AM
Hey,
I'm quite sure there is no efficient way to do this, however i thought id ask incase there was some trick that could be used, other then using a generic timer to execute a secondary script.
I have a script which at one point runs the command prompt to do something
As im aware theres only two different methods (neither which i like particularly) to ensure that randomtext.txt doesnt get processed until the command has been completed.
The first is to use a timer, and have the rest of the script in there, the next is to have an ok $input - and ask them to click ok once its done.
I was wondering if there was perhaps some other clever way of doing it.
I'm quite sure there is no efficient way to do this, however i thought id ask incase there was some trick that could be used, other then using a generic timer to execute a secondary script.
I have a script which at one point runs the command prompt to do something
Code:
run RandomProgram.exe >randomtext.txt
As im aware theres only two different methods (neither which i like particularly) to ensure that randomtext.txt doesnt get processed until the command has been completed.
The first is to use a timer, and have the rest of the script in there, the next is to have an ok $input - and ask them to click ok once its done.
I was wondering if there was perhaps some other clever way of doing it.