Now I usually take my laptop to work. Because the company's Internet access environment is always different from the Internet access environment at home, the most troublesome thing before going online every day is to change the Internet access configuration,
It's okay to access the internet at home. All the settings are automatically completed, and the company is in trouble. It's also a matter of setting IP addresses, setting DNS, and setting proxy for IE. ProgramClerk,
How can we always do this boring kind of physical work? Simply use vs2005 to write a winform IP address switching tool.
The interface is as follows:
It is easy to use. By default, six configuration options are provided. After setting the options, click the application.
Click the Save all configuration button above to save all the current configuration options.
CodeThe technical content is not very high.
AttachedSource codeBelow, if you are interested, take it for research. If you have any improvement, remember to send it back to me.
Program Execution file: http://files.cnblogs.com/kiler/NetworkSwitch.7z
Program source code: http://files.cnblogs.com/kiler/NetworkSwitchSource.7z
After the program runs, A networkadaptersetting. dat file is generated under the running directory to save the configuration. Do not delete it.
Last night, I made a small modification, corrected the DNS-writing DSN error, and updated the program and source code.