Im trying to write a batch file that waits till spacebar is hit and then does a certain thing or if nothing happens in 10 seconds it goes back to start.
Now i tried to use choice but i dont know how it listens to spacebar.
Does anybody know how to use it or has another idea?
this is my code now:
Code: Select all
CHOICE /C:1{herethespacebarthen??} /N /T:1,10 press space to continue
IF ERRORLEVEL == 2 GOTO 2
IF ERRORLEVEL == 1 GOTO 1
Kind regards,
Martijn