在执行之前wait 10秒,如果10秒内有press any key的干预,让你输入size的数值,
如果10秒内没有干预,%%1默认16000
目前是否有方式可以这么做?(打算在autoexec.bat里实现)作者: yfwang0798 时间: 2013-2-23 19:47
纯dos,微软的dos中有choice命令。作者: pppguest3962 时间: 2013-2-24 00:07
choice不能做到 15秒没选择就如何如何下一步。。。。作者: yfwang0798 时间: 2013-2-24 07:26
以前写的一个测试程序
cls
@echo off
echo ******************************************************
echo * Select OS to install *
echo ******************************************************
echo.
echo To Build an ME Give Away ...press A
echo.
echo To Build an CMAR ...........press B
echo.
echo To Build an XP Give Away ...press C
echo.
echo To Build an Garage Sale
echo XP Home ..........press D
echo XP PRO ...........press E
echo.
echo To exit this program .......press X
echo.
echo.
choice /c:abcdex /t:d,20 TYPE THE LETTER AND PRESS ENTER:
if errorlevel 6 goto exit
if errorlevel 5 GOTO xpp
if errorlevel 4 GOTO xph
if errorlevel 3 GOTO xpga
if errorlevel 2 GOTO cmar
if errorlevel 1 GOTO mega
goto end