Script to turn internet on/off?

jon the noob

In Runtime
Messages
275
I'm looking for a way to have a program which could toggle internet connection on/off. Maybe like a batch script or something , I really don't know. I'd really appreciate some help as how to go about this :p
 
if your connected to a router.

ipconfig /release

would disconnected the internet.

ipconfig /renew

would reconnect the internet.

saved it .bat format
 
thanks!

shame it doesnt work on vista though :p tested it on the XP computer and it works

something about requires elevation yeah ??

make the .bat files, right click them in vista properties, and run as administator.

now if they are run as admin even if you have admin rights you strill need to do this. it should work
 
something about requires elevation yeah ??

make the .bat files, right click them in vista properties, and run as administator.

now if they are run as admin even if you have admin rights you strill need to do this. it should work

hey! yeah i've done some digging and your post was dead on, however I'm using these by a binded key so I need to set the programs themselves to Run as administrator.

That option is blanked out on batch files so I'm stuck :(
 
Download Zonealarm firewall. It has an Internet lock toggle and an Internet stop toggle.
 
Back
Top Bottom