在一个批处理文件中,我有下面这一行,它运行一个防病毒程序。我想确保它在批处理移动到以下行之前完成它的任务。据我所知,START/WAIT就是等待。不幸的是,START/WAIT会中断代码行。
下面是运行的代码:
"C:\Program Files (x86)\Anti-Virus\" d:\files\%1\ProcessFiles\%2-proc\*.*这段代码不能运行:
START/WAIT "C:\Program Files (x86)\Anti-Virus\fsav" d:\files\%1\ProcessFiles\%2-proc\*.*当这行代码运行时,我得到一个错误消息:
"Windows cannot find 'd:\files\abc\ProcessFiles\abc-proc\*.*'.
Make sure you typed the name correctly, and then try again."当错误提示打开时,如果我导航到该文件夹,其中有文件。
提前感谢您的帮助。
发布于 2012-09-05 05:40:41
START/WAIT不是一个单词,它是由空格分隔的两个单词。
此外,如果名称中有空格,则在文件规范两边加上双引号也会有所帮助。
试试这个:
START /WAIT "C:\Program Files (x86)\Anti-Virus\fsav" "d:\files\%1\ProcessFiles\%2-proc\*.*"https://stackoverflow.com/questions/12271225
复制相似问题