DIGIT-ARC read-only archive · snapshot: July 23, 2026

vb.net or C# to enable/disable LAN

5 posts · originally from https://geek.digit.in/community/threads/vb-net-or-c-to-enable-disable-lan.127956/

M
mr.csk Original post #1
Jun 8, 2010 at 2:29 PM
Hi all

im having dataone 500 plan.So to automate the night download have written code in vb.net to restart modem, enable/disable the network connection, start/stop softwares etc..It was done for the windows XP machine and worked fine for last 1 year..Now i installed windows 7 but not able to access the network connections from vb.net:sad:..Can some one help me out? Vb.net or C# code please

Thanx and regards
CsK
A
Jun 8, 2010 at 11:54 PM
can u post ur program code?? may be some changes are required. also in which edition of vb.net you wrote this code. i mean in vb.net 2005 or 2008 or in any other edition??
asingh
asingh #3
Jun 9, 2010 at 12:43 AM
^^
You must be calling some API, that could have changed. Check it out again.
dheeraj_kumar
Jun 20, 2010 at 8:58 PM
Run it as administrator.