
CODE: [Copy to clipboard]@echo off
:date1
echo %date% %time%
set /p "x=請輸入:"
if "%x%"=="" goto :quit
set x=
goto :date1
:quit
CODE: [Copy to clipboard]要运行本批处理请先在本版内搜索下载choice.exe@echo off
:lp
echo %time:~,-3%
echo 程序默认选择为[c],暂停请输入[p],退出请输入[e]
choice /t 1 /c cpe /d c
if "%errorlevel%" equ "2" pause
if "%errorlevel%" equ "3" goto :eof
cls&goto lp
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |