Disconnecting network connection and reconnecting
Hi guys
I have a USB 3G dongle from Orange which is like a dialup connection, rather than a wireless connection.
Is there anyway in vb.net to control this connection? So disconnect is and recconnect it etc?
The reason for this is automatically getting a new ip address without manually disconnecting in network connections.
Re: Disconnecting network connection and reconnecting
You can run ipconfig /release to release the current ip and then run ipconfig /renew to renew the ip address. However, you may still get the same ip address each time.
Re: Disconnecting network connection and reconnecting
Re: Disconnecting network connection and reconnecting
i tried it but i require elevation, i forgot about that. Im using windows vista.
How can i run a shell as administrator?
Re: Disconnecting network connection and reconnecting
Look at the command "runas".
Re: Disconnecting network connection and reconnecting
don't you log in windows as administrator ?
also you could run a macro
Re: Disconnecting network connection and reconnecting
i did look at runas but cant work it out.
currently im just right clicking on the exe and running as admin