Hey,
I'm writing a network management program in vb 6 and i was wondering if any one new of a way to reboot the network connections for the computer. i.e. turn off the network on the computer, and then turn it back on.
Thanks
Printable View
Hey,
I'm writing a network management program in vb 6 and i was wondering if any one new of a way to reboot the network connections for the computer. i.e. turn off the network on the computer, and then turn it back on.
Thanks
I'm sure theres probably API to disable it and renable it. Don't know of it off hand though.
I would have expected there to be as well, but i can't seem to find one.
How about ipconfig /reset? Shell it.
There is no reset switch but there are a couple that you can use to simulate a reset.
VB Code:
ipconfig /release [connection name] 'releases the ip on the network card. ipconfig /renew [connection name] 'obtain a new ip for the network card where its set to have DHCP enabled.
Thanks RobDog - But one quick question - is the connection name the name of the network you are connecting to, or it's ip?
If you only have one nic card then you dont need to use it as its optional. Its actually the name of the LAN connection for each nic card you have viewable in your network connections.
Brain freeze on my part, Rob. :blush:Quote:
Originally Posted by RobDog888
Thanks RobDog, that works perfectly, even on a wireless usb adaptor, which is great.