Link to home
Start Free TrialLog in
Avatar of XK8ER
XK8ERFlag for United States of America

asked on

vb.net - disable local area connection

hello there,
I would like to know how can I disable the local area connection using vb.net
right now I have the code bellow but when I use it and I right click on the local area connection its not grayed out and it doesn't say disabled
Shell("net stop dhcp")   'Run this to stop internet connection
Shell("net start dhcp")   'Run this to stop internet connection

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Jorge Paulino
Jorge Paulino
Flag of Portugal image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Also if you are going to spawn commands consider using the Process object now instead of Shell.