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

  

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, under WinXP LAN, we If you want to check whether 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.

Recommended: Latest WinXP system

Identification method:

Open Notepad, enter the following commands in the window:

@Echo off

date /t > IPList.txt

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 attention should be paid to:

1. The above batch file identification method is only applicable to WinXP system.

2. Change the 192, 168.0 inside to the IP network segment where you are.

3, and if an IP computer uses a firewall to prevent Ping, it is not judged.

After learning the above techniques, you can analyze and judge the ping of a certain network segment at any time under the WinXP system. If you check that the IP address is pinged, you can use another IP that is not occupied. Address, this method can also help you with network troubleshooting. I don't know if you learned it?

Copyright © Windows knowledge All Rights Reserved