title: windows batch scripting: catch user reaction to "timeout" command
body: <p>I know that by using the "timeout" command, I can wait for specified amount of time; but my question is that what if this would be an automatic operation that could be prevented by user? I mean suppose that I wanted to do the operation A but by using the "timeout" command I wait if user wants to cancel this operation or not; for example during this waiting process if user pressed the Enter key then batch script execute something else(not operation A);<img src="https://i.stack.imgur.com/Rbni8.png" alt="enter image description here"></p>