在批处理文件中,我有这条运行防病毒程序的行。我希望确保它在批次移至下面几行之前完成其工作。根据我的理解,START/WAIT是等待。不幸的是,START/WAIT打破了代码行。Windows命令行'开始'可以防止查找所有文件
下面是运行该代码:
"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."
虽然该错误提示已打开,如果我导航到该文件夹,那里有文件。
在此先感谢您的帮助。使用提示
什么是你想运行的程序? 'C:\ Program Files(x86)\ Anti-Virus'似乎是一个文件夹,而不是一个程序,如果我们把它作为一个标题,那么'd:\ files \%1 \ ProcessFiles \%2-proc \ *。*'似乎是多个文件,而不是单个程序 – SeanC
道歉,我混淆了太多。在我的代码中,该行读取“C:\ Program Files(x86)\ F-Secure \ Anti-Virus \ fsav”。我永远不知道从我的代码中删除多少或少量真实的信息。 – Tyson