Go Back   Computer Forums > Welcome To Computer Forums .org > Social Lounge | Off Topic
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 07-25-2008, 12:59 PM   #1
In Runtime
 
jon the noob's Avatar
 
Join Date: Nov 2006
Posts: 275
Default Script to turn internet on/off?

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
__________________

__________________
I ask alot of questions. A +Rep is in order for all those who can put up with them.
jon the noob is offline   Reply With Quote
Old 07-25-2008, 01:09 PM   #2
Fully Optimized
 
ssc456's Avatar
 
Join Date: Jan 2007
Posts: 4,279
Send a message via MSN to ssc456
Default Re: Script to turn internet on/off?

if your connected to a router.

ipconfig /release

would disconnected the internet.

ipconfig /renew

would reconnect the internet.

saved it .bat format
__________________

__________________
He who has never failed has never attempted anything worth succeeding at.

Dont Eat Animals, Its Not Good For Them And They Dont Like It!
ssc456 is offline   Reply With Quote
Old 07-25-2008, 01:17 PM   #3
In Runtime
 
jon the noob's Avatar
 
Join Date: Nov 2006
Posts: 275
Default Re: Script to turn internet on/off?

thanks!

shame it doesnt work on vista though :P tested it on the XP computer and it works
__________________
I ask alot of questions. A +Rep is in order for all those who can put up with them.
jon the noob is offline   Reply With Quote
Old 07-25-2008, 01:26 PM   #4
Fully Optimized
 
ssc456's Avatar
 
Join Date: Jan 2007
Posts: 4,279
Send a message via MSN to ssc456
Default Re: Script to turn internet on/off?

Quote:
Originally Posted by jon the noob View Post
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
__________________
He who has never failed has never attempted anything worth succeeding at.

Dont Eat Animals, Its Not Good For Them And They Dont Like It!
ssc456 is offline   Reply With Quote
Old 07-25-2008, 03:09 PM   #5
In Runtime
 
jon the noob's Avatar
 
Join Date: Nov 2006
Posts: 275
Default Re: Script to turn internet on/off?

Quote:
Originally Posted by ssc456 View Post
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
__________________
I ask alot of questions. A +Rep is in order for all those who can put up with them.
jon the noob is offline   Reply With Quote
Old 07-25-2008, 03:59 PM   #6
Daemon Poster
 
Lac3y's Avatar
 
Join Date: Oct 2005
Posts: 1,110
Send a message via MSN to Lac3y
Default Re: Script to turn internet on/off?

Download Zonealarm firewall. It has an Internet lock toggle and an Internet stop toggle.
__________________

__________________
Intel Core 2 Duo E8400 @ 3.7GHz
4GB OCZ PC-6400 RAM
Samsung Spinpoint 1TB HDD
ATI Radeon HD4890 with VoltageTweak
OCZ Stealth XStream 600w PSU
Lac3y is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 07:45 PM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0