Please register or login. There are 0 registered and 525 anonymous users currently online. Current bandwidth usage: 326.30 kbit/s November 30 - 04:14pm EST 
Hardware Analysis
Forums Product Prices

  Latest Topics 

More >>


  You Are Here: 
/ Forums / Programming /

  Batch file using the ping command as a network alert? 
 Date Written 
Seth Hoffman Aug 11, 2011, 06:02pm EDT Report Abuse
I am trying to write a simple batch file (i have the sleep.exe file), here is what it needs to do:

Ping an IP address
If that ping request fails or times out then kick off a different batch file.

So far I have:

ping -n 10 | find "timed out" >nul && call warning.bat
sleep 30
goto start

This command crashes the console window.

Do any of you know a way to run this type of command?



  Topic Tools 
RSS UpdatesRSS Updates

  Related Articles 

A weekly newsletter featuring an editorial and a roundup of the latest articles, news and other interesting topics.

Please enter your email address below and click Subscribe.