CHOICE can be used where one specifies that it should pick the default after a certain period of time. Create a batch file WAIT.BAT with the following lines:
If not having CHOICE available, but have TCPIP PING then one can use this instead:@REM The > NUL make sure that the screen output from choice is not shown
@CHOICE /T:N,%1% > NUL
To use WAIT.BAT, call it like this:@REM The > NUL make sure that the screen output from choice is not shown
@PING 1.0.0.0 -n %1 -w 10 > NUL
CALL WAIT 10
Leave a Reply