Original: 51288248
----------------------------------------------------------------
- If you want to know your local area network or outside the network any part of the online IP, or want to know how many people at the same time on the internet how to do? Maybe we all think about finding tools or something. In fact, the use of Windows built-in batch processing can fully realize the purpose of batch ping to find the designated network Segment Survival host! Look down.
@echo offset /p ip="请输入IP地址段,格式如:"192.168.1." >>> "for /L %%i in (1,1,254) do (Ping.exe -n 1 -l 16 -w 100 %ip%%%i>>ipscan.txtif not errorlevel 1 (echo %ip%%%i 可以ping通))pause
- Copy the above code into the Notepad document and save as Ipscan.bat. Then double-click a button to run the Ipscan.bat batch script as prompted to enter the IP segment to scan, you can see the results returned. The format is similar to:
Please enter the IP address segment in the format: "192.168.1." >>> 192.168.1.
192.168.1.100 can ping through
192.168.1.101 can ping through
192.168.1.102 can ping through
192.168.1.103 can ping through
192.168.1.104 can ping through
192.168.1.123 can ping through
192.168.1.144 can ping through
192.168.1.146 can ping through
192.168.1.149 can ping through
192.168.1.150 can ping through
Please press any key to continue ...
- Can you guys read it? You can enter for/in the CMD window if you can't read it. View command details or search online for learning. ##
Windows Batch Ping a network segment