Batch File - Ping Send Command

October 22, 2010 at 02:12:00
Specs: Windows xp, 1gb
Hi. I want to get the ping test result of 31 ip's to individual 31 text files.I want to write a single batch program.

( ex-: ping 10.92.238.101 -t >rslt01.txt
ping 10.92.238.102 -t > rslt02.txt
.....)

Please post any precise example if possible . And also help me if possible because i want to get these output files each and everyday so that if there's any quick method it will be more useful..

Best Regards
Dilshika87


See More: Batch File - Ping Send Command

Report •

#1
October 22, 2010 at 02:19:24
Try

@echo off
for /l %%i in (1,1,254) do @ping 10.92.238.%%i -n 1 > nul >> 10.92.238.%%i.txt
pause
exit

Happy is ONE who says I am an OttoMAN.


Report •
Related Solutions


Ask Question