@echo off & setlocal enableextensions echo WScript.Sleep 1000 > %temp%/tmp$$$.vbs set /a i = 20 :Timeout if %i% == 0 goto Next setlocal set /a i = %i% - 1 cls echo # [%i%]秒后程序开始运行 # cscript //nologo %temp%/tmp$$$.vbs goto Timeout goto End :Next cls & echo. for %%f in (%temp%/tmp$$$.vbs) do del %%f start cmd.exe exit