Tuesday 10 June 2014

Find IP of online PC in your network using batch programming

Batch Programming to find out online computer in a network

1. Open notepad and copy the following code:

@ECHO OFF
for /L %%i in (1,1,254) do ping -n 1 192.168.1.%%i >> ping.txt
find "TTL" < ping.txt > onlineip.txt
del ping.txt
echo .
echo Ping Report has been saved to onlineip.txt
more onlineip.txt
echo Press any key to exit
PAUSE > NUL
EXIT


2. Set your network IP in the code.

3. Save the file as pinger.bat and select Save as type: All Files

4. Execute pinger.bat  and it will save the result in onlineip.txt file.


No comments:

Post a Comment

Feel Free to Share issues with me....