How does WinXP use batch file to identify whether IP address Ping is connected?

  
Ping belongs to a communication protocol. Ping command can check whether the network is connected. It can help us analyze and determine network faults. However, if we want to check under WinXP LAN. If the IP address Ping is connected, you need to use another method. I believe many friends have already guessed it, that is, use the batch file to judge whether the IP address Ping is connected.

Recommendation: The latest WinXP system
Identification method:
Open Notepad and enter the following command in the window:
@Echo off
date /t > IPList.txt< Br>time /t >> IPList.txt
echo =========== >> IPList.txt
For /L %%f in (1,1,100) Do Ping.exe -n 2 192.168.0.%%f Find
"Request timed out." & echo 192.168.0.%%f Timed Out >>
IPList.txt & echo Off
cls
Echo Finished!
@Echo on
Notepad.exe IPList.txt
Save this file as PingIP.bat.
After running, an IPList.txt file will be generated, which records which IP addresses are pinged.
Special need to pay attention to:
1, the above batch file identification method is only applicable to WinXP system.
2, you must change the inside 192, 168.0 to your IP network segment.
3, and if an IP computer uses a firewall to prevent Ping, it is not judged.
After learning the above techniques, in the LAN under WinXP system, you can analyze and judge the ping of a certain network segment at any time. If you check that the IP address is pinged, you can use another IP address that is not occupied. This method can also help you with network troubleshooting. I don't know if you learned it?

Copyright © Windows knowledge All Rights Reserved