Page 1 of 1

DOS Usage

Posted: Fri May 21, 2004 12:25 pm
by shaggyjo444
All -
I have a DOS Database program that goes thru a manual re-indexing process.  I have been able to automate the process, but my script will not wait until the process has been completed to end.
I know the filename of the last index file created.  How can i setup a IF Then statement to check the time/date of this last file - and if it has been changed - continue to execute the script - if not, to continue to check if it has been changed.
I hope this is making sense.
Thanks for the help !
Shawn

DOS Usage

Posted: Sat May 22, 2004 2:00 am
by BrianSmith
If you are using the Run Program/Open Document action then you should be able to select "Wait until the application exists" from the Wait Options drop-down list. Then you can use the "Assign Exit Code to Variable" option and then use an If statement to test if the exit code variable is set to 0 and perform whatever action you like after it has finished.

Hope this helps.

I also might not be understanding your problem.

Let me know.