Skip to content

Latest commit

 

History

History
5 lines (4 loc) · 307 Bytes

For+Ping命令查询存活主机.md

File metadata and controls

5 lines (4 loc) · 307 Bytes
>for /L %I in (1,1,254) DO @ping -w 1 -n 1 192.168.0.%I |findstr "TTL="

image

For+Ping命令查询域名对应IP
>for /f "delims=" %i in (D:/domains.txt) do @ping -w 1 -n 1 %i | findstr /c:"[192." >> c:/windows/temp/ds.txt