CODE: [Copy to clipboard]@echo off cls set /p pc=输入计算机名称: :testIP ping -a %pc% -n 1 >nul if %ERRORLEVEL%==1 goto :testIP :start ECHO 通了