有时批处理希望停顿一下,等待其他处理,或者用户选择,超时后继续默认处理。可以用以下方法:
net start "Windows Update"
@Echo off
Echo See above message if OK.
Echo -------------------------------
echo Delay 5 seconds and exit .....
for /L %%i in (5,-1,1) do echo %%i seconds left to Exit && ping 127.0.0.0 -n 2 > nul
Echo Exit.