【问题标题】:Batch file, calling an exe that has PAUSE in it, how to skip?批处理文件,调用其中有PAUSE的exe,如何跳过?
【发布时间】:2015-01-21 05:14:58
【问题描述】:
forfiles /p "P:\a3\" /s /m *.wss /c "cmd /c dewssdos @file"
我在这里调用的 DeWssDos.exe 中有一个 PAUSE,我无法编辑该 exe。
如何在我的代码中跳过 PAUSE?
【问题讨论】:
标签:
batch-file
cmd
command
skip
【解决方案1】:
我认为只需按 Y 和换行即可通过暂停。
forfiles /p "P:\a3\" /s /m *.wss /c "cmd /c echo y &echo.|dewssdos @file"
我希望这会有所帮助!
【解决方案2】:
感谢您的回答!
很抱歉浪费了您的时间。不幸的是,我完全忽略了 DOS 工具本身的一个选项...... -P 禁用暂停。好家伙。 :)
任何使用 Mikero 的 DeWssDos 工具的人,试试这个:
forfiles /p "Path\To\Files" /s /m *.wss /c "cmd /c dewssdos -P @file"