object to disconnect pc from internet?

Hi everyone,
I'm kind of new at this, but I am picking up on it really quick. I made all sorts of objects to do my bidding because I want to get rid of my start bar on bottom. I have icons that will connect me to the internet. But I have no idea how to make one that will actually turn off the connection. Cause you know closing explorer doesn't do it! If anyone has a clue, please let me know. Oh, and I wanted to make one for my task manager too, but I can't seem to get it pointed to the right place. Will gladly take help fo either problem.
Thanks crumby
4,493 views 6 replies
Reply #1 Top
Dial Up or High Speed?
Reply #2 Top
The path to the task manager in XP home is "C:\WINDOWS\system32\taskmgr.exe" provided your OS is installed on the "C" drive, point your shortcut to there.
Reply #3 Top
Phoon,
It's dial up. Hate the slowness, but they don't have access to DSL up here.

Reppiks,
Thanks alot!

Reply #5 Top
Here's a simple vbscript. You need to adjust it to dxscript.

set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "rasdial [connection name] [username] [password]", 1, true

(fill in the [] parts) To connect

and

set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "rasdial /disconnect", 1, true

Source: http://groups.google.com/group/microsoft.public.scripting.wsh/browse_thread/thread/872e649ff506c6e5/1de53946e718a903%231de53946e718a903"]http://groups.google.com/group/microsoft.public.scripting.wsh/browse_thread/thread/872e649ff506c6e5/1de53946e718a903%231de53946e718a903

Or You can try Gunter Borne's ActiveX control http://people.freenet.de/gborn/WSHBazaar/WSHBazaar.htm

PS. Change 1 to 0 if you don't want command window to popup.
Reply #6 Top
That's a neat script. I think that should be added to the Wiki.