G
Guest
How does one overcome a /WAIT statement issue where the wait really does not
wait until the process is finished. I have two lines of code in a batch file:
Line1 = start /wait schtask /run /nt "name of task"
Line2 = rename a file created from the task of Line1
Line1 runs backup software creating a flat file; Line2 renames the flat file
to something else.
When the batch file runs Line2 is executed and fails due to the fact that
the flat file isn't created yet. This is simply a timing issue.
Thanks-John
wait until the process is finished. I have two lines of code in a batch file:
Line1 = start /wait schtask /run /nt "name of task"
Line2 = rename a file created from the task of Line1
Line1 runs backup software creating a flat file; Line2 renames the flat file
to something else.
When the batch file runs Line2 is executed and fails due to the fact that
the flat file isn't created yet. This is simply a timing issue.
Thanks-John