In a Windows batch file, myScript.bat runs otherScript.bat, and in otherScript.bat, there’s a pause in first line.
How can I send a keystroke thast skips the pause in myScript.bat? So my script won’t need to take any extract keystroke and won’t be blocked by the pause.
One way would be to use the
echocommand to do the keystroke for you.For example:
myScript.bat
otherScript.bat
Stefan’s solution is more flexible and allows you to control when to pause or not, but this solution will work if you’re not able to revise otherScript.bat for some reason.