choice has a function that if there is no option selected within a period of time, it will automatically select the default option. How to implement this function in the XP command line?
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!
Originally posted by driver1998 at 2008-5-30 03:31 PM:
Basically, if there is no time limit, it can be like this:
Set /P xz=
if /i '%xz%'=='1' goto start
if /i '%xz%'=='q' goto exit
if "%xz%" == "" goto menu