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

718 Views Asked by At
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?

2

There are 2 best solutions below

0
On

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!

0
On

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"