CODE: [Copy to clipboard]@echo off set count=5 :loop cls echo %count%秒后退出 set /a count-=1 ping -n 2 127.1 >nul if %count% neq 0 ( goto :loop )