Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.
Need DOS ping script sample
Name: joe_schmoe2007 Date: February 11, 2008 at 10:46:20 Pacific OS: XP CPU/Ram: Pentium\1 GB Product: DELL GX 620
Comment:
I need a DOS batch file to ping an external list of server by hostname, not IP. Also, I need to have the results piped to another external text file and want these results emailed to a few people. Anyone have a sample DOS script I could copy?
so on and so forth. simple to write. >> means append so you need to create the text file first. How you are going to automate this with email... good luck.
Might want to check into programs like What's Up Gold on other network monitoring softwares which so have the ability to email.
Imagine the power if you knew how to internet search
0
Response Number 2
Name: StuartS Date: February 11, 2008 at 12:04:46 Pacific
Reply:
You can use Sendmail to send the resultant text files. The text files can be used as input to the sendmail applcation using << instead of >>. Make sure you read and understand the instructions on how to configure the .ini file.
Sendmail is designed to be used with scripting languages.
Stuart
0
Response Number 3
Name: joe_schmoe2007 Date: February 11, 2008 at 12:05:10 Pacific
Reply:
~Thanks for the quick reply. Here is what I'm getting: "The process cannot access the filebecause it is being used by another process". Any suggestions?
0
Response Number 4
Name: wanderer Date: February 11, 2008 at 12:21:51 Pacific
Summary: Hiyas. I am desperately looking for a (preferrably legit and freeware?) pure DOS ping program. I've found a few posts pointing to: http://firststep.ahwww.com/dosware/netapps.zip but that site seems t...
Summary: Pings use the ICMP protocol and doesn't use ports like TCP or UDP. You could block all ICMP packets and that would certainly take care of it. It is possible to block only pings, but the way to do tha...