Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

iam using 256 kbps internet i will download in night time fully ,in that my problem is..

Some time internet connection will be disconnected, by the time sysytem will be runnig full night wastly,

so i need to avoid this problem by detecting the net connectivity..

Is there any free software, that will detect the status of internet and shutdown the system when the internet disconnected, Or hit any exe file when internet disconnected ,so i will route it to shutdown exe shortcut .

thanks in advance

share|improve this question

migrated from Dec 20 '09 at 17:53

This question came from our site for professional and enthusiast programmers.

closed as too localized by quack quixote, Ivo Flipse Feb 22 '10 at 19:05

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

You have not mentioned what operating system you are using. – ChrisInEdmonton Dec 20 '09 at 18:55

A possible solution is running a script that will shut down the computer once the Internet is unreachable. Below is an example script that I whipped up (without much testing),

It uses sleep.exe which is included in the Windows Server 2003 Resource Kit Tools, or another possibility is to download a similar program from here.

@Echo Off
sleep 600
ping -n 1 > NUL
if errorlevel 1 shutdown -s
goto loop

Note: The parameter of sleep depends on the version of it that you choose to use.

share|improve this answer