运维网's Archiver
论坛
›
Shell/Powershell
› Cping (cmd shell )版本
9AMC
发表于 2018-8-21 06:10:42
Cping (cmd shell )版本
@echo off for /f "skip=3 tokens=1 usebackq" %%A in (`ping -n 1 -l 1 %1.%2`) do (
rem echo %%A
if not "%%A"=="Request" goto alive
echo %1.%2 is dead.
goto next
:alive
echo %1.%2 is alive.
:next
rem noop
)
页:
[1]
查看完整版本:
Cping (cmd shell )版本