[SOLVED] How to disable a LAN connection?
Is there any way to emulate the enable/disable button of the Status connection window for a LAN?
In other words, I have a PC connected via Ethernet+router to Internet and I want to disconnect it for a period and then connect it again.
I searched in MSDN but all I found was RasDialUp/RasHangUp for dial up connections. I'm not able to find anything on LAN connections.
Thanks
Re: How to disable a LAN connection?
You want to disable from the desktop or from the code. If from the desktop, go to nettowk neighbourhood icon , right click . You can see local area connection. just right click and disable lan connection.
Sapp
Re: How to disable a LAN connection?
sapp,
I want to disable it from code.
Thanks
Re: How to disable a LAN connection?
I guess you could with the console... If you can send commands to the console you could always ipconfig and then /release the adapter you want.
Re: How to disable a LAN connection?
Re: How to disable a LAN connection?
Any help on translating this nice script code to VB code?
Problems come back, always come back! :rolleyes:
Re: How to disable a LAN connection?