Please register or login. There are 0 registered and 1273 anonymous users currently online. Current bandwidth usage: 326.30 kbit/s December 12 - 01:31am EST 
Hardware Analysis
      
Forums Product Prices
  Contents 
 
 

  Latest Topics 
 

More >>
 

    
 
 

  You Are Here: 
 
/ Forums / Programming /
 

  Batch file using the ping command as a network alert? 
 
 Author 
 Date Written 
 Tools 
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: 1816
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:

:start
ping -n 10 192.168.1.105 | 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 
 
 

  Newsletter 
 
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.