A small tool for switching laptop Internet access settings (with code)

Source: Internet
Author: User
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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.