ygqiang 当前离线
少尉
apang 当前离线
上将
@echo off set /p t=输入时间(格式:1-05) set /a "t=%t:-=*3600+(1%-100)*60" for /l %%a in (%t% -1 1) do ( set /p=%%a<nul ping>nul -n 2 127.0.1 ) echo,运行某个程序 exit/b复制代码
TOP
apang 发表于 2015-1-11 13:32
@echo off set /p t=输入时间(格式:1-05) set /a "t=%t:-=*3600+(1%-100)*60" for /l %%a in (%t% -1 1) do ( set /p=还剩%%a秒 <nul ping>nul -n 2 127.0.1 ) echo,运行某个程序 exit /b复制代码