Batch file, calling an exe that has PAUSE in it, how to skip?

 ̄綄美尐妖づ 提交于 2019-12-12 03:19:54

问题


forfiles /p "P:\a3\" /s /m *.wss /c "cmd /c dewssdos @file" 

DeWssDos.exe, that I call here has a PAUSE in it and I can not edit the exe.

How do I skip the PAUSE from within my code?


回答1:


I think the pause would be passed by just hitting Y and a new line.

forfiles /p "P:\a3\" /s /m *.wss /c "cmd /c echo y &echo.|dewssdos @file" 

I hope this could help!




回答2:


Thank you for your answer!

I am sorry to have wasted your time. Unfortunately I totally overlooked an option in the DOS Tool itself... -P disables the pause. Oh boy. :)

Anyone that's working with Mikero's DeWssDos tool, try this:

forfiles /p "Path\To\Files" /s /m *.wss /c "cmd /c dewssdos -P @file"



来源:https://stackoverflow.com/questions/27088802/batch-file-calling-an-exe-that-has-pause-in-it-how-to-skip

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!