Can't have a batch file that controls a server function to the best of my knowledge pal, sorry.. however, there may be a program out there specifically that pings addresses and notifies you when its unsuccessful.
I did not reply to your post since it seems you want to mail by Exchange Server. If instead you want a standalone line command mailer to be driven by a batch script, there are many free on the web. I can send you the one I use toghether with a sample script to ping servers/IP addresses and launch the mailer when no response. If interested contact me by a private message including your e-mail address.
The information on Computing.Net is the opinions of its users. Such
opinions may not be accurate and they are to be used at your own risk.
Computing.Net cannot verify the validity of the statements made on this
site. Computing.Net and Purch hereby disclaim all responsibility
and liability for the content of Computing.Net and its accuracy.