Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Help fix PING batch file
Name: louisd11 Date: June 25, 2009 at 06:36:00 Pacific OS: Windows XP Subcategory: Batch
Comment:
I stole this code from another post, but how do I make it so that when I get a reply it DOES NOT write the IP to the batch file?
:start @echo off setLocal EnableDelayedExpansion
for /f "tokens=* delims= " %%a in (IPlist.txt) do ( echo %%a >> timedout.txt ping %%a | find "Request timed out" >> timedout.txt )
Name: Matt (by Mattio) Date: June 25, 2009 at 08:05:41 Pacific
Reply:
Do you mean you don't want the PING to display ? If you want the PING to be hidden & do nothing.
You export it to nothing which is > nul
For example. Ping 127.0.0.1 -n 2 > nul
It will ping but it won't show or do anything else. If thats not what your after give me some more information Please i'll do my best to help.
Matt
*************************** Need BatchFile Help ? Msg me :) ***************************
0
Response Number 2
Name: louisd11 Date: June 25, 2009 at 08:10:42 Pacific
Reply:
Sorry I didn't explain well. Right now the file rights all IP's to the output file. I just want the unresponsive IP's to only be written to the file. Specifically "Request timed out" Heres what tyhe output file now looks like:
Summary: Mechanix2, I need some help creating an advanced ping batch file. What the batch file would do is this. A batch file running on server A would continously ping server B, when 10 pings (user definable)...
Summary: Your help will be deeply appriciated and many thanks--- Hi I need help writing a batch file. I have a text file which contains usernames of all the users whose profiles need to be copied from one loc...
Summary: Hi I am writing a batch file to automatically run some commands by telnetting to a network device. Everything goes fine until the device asks for input from the user. E.g "Press any key to continue .....