In a batch file, I have this line that runs an antivirus program. I’d like to ensure that it finishes its job before the batch moves on the following lines. From what I understand, START/WAIT is the wait to go. Unfortunately, START/WAIT breaks the line of code.
Here is the code that runs:
"C:\Program Files (x86)\Anti-Virus\" d:\files\%1\ProcessFiles\%2-proc\*.*
This code does not run:
START/WAIT "C:\Program Files (x86)\Anti-Virus\fsav" d:\files\%1\ProcessFiles\%2-proc\*.*
When this line runs, I get an error saying:
"Windows cannot find 'd:\files\abc\ProcessFiles\abc-proc\*.*'.
Make sure you typed the name correctly, and then try again."
While that error prompt is open, if I navigate to that folder, there ARE files in there.
Thanks in advance for any help.
using hint from SS64,
Always include a TITLE this can be a simple string like “My Script” or just a pair of empty quotes “”
According to the Microsoft documentation, the title is optional, but you
maywill have problems if it is omitted.START "" /WAIT "C:\Your Anti-Virus\antivir" "d:\files\%1\ProcessFiles\%2-proc\*.*