问题
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