Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

iam using 256 kbps internet connection..so 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
    
You have not mentioned what operating system you are using. –  ChrisInEdmonton Dec 20 '09 at 18:55
add comment

migrated from stackoverflow.com 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.

1 Answer

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
:loop
sleep 600
ping -n 1 www.google.com > 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
add comment