Please register or login. There are 0 registered and 1330 anonymous users currently online. Current bandwidth usage: 326.30 kbit/s November 23 - 01:54pm 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 Reply - Quote - Report Abuse
Private Message - Add to Buddy List

Edited: Aug 11, 2011, 06:03pm EDT

Replies: 0 - Views: 2671
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?

Write a Reply >>



  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.