1

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

1
  • You have not mentioned what operating system you are using. Dec 20, 2009 at 18:55

1 Answer 1

1

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.