Rajkiran, you could launch ipconfig.exe via System.Diagnostics.Process
class. The easy way is using the Form Designer - dropping a Toolbox Process
icon onto a form and setting up process properties and the Exit event (you
may want to know when the process finished). The generated code would look
like this:
I am not sure this is the best way, but it certainly works. You could take
it a step further and add events notifying when the network connection is
restored (IPAddress acquired).
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.