IP quick Settings. bat

Source: Internet
Author: User

@echo off

Title Confirm Selection

Echo.

set/p convert= 1: Turn on the wireless network, 2: Turn off the wireless network, 3: Set the local network to fixed ip,4: Set the local network to auto get, 5: Turn off the local network? (1/2/3/4):

If "%convert%" = = "1" goto C

If "%convert%" = = "2" goto E

If "%convert%" = = "3" goto F

If "%convert%" = = "4" goto G

If "%convert%" = = "4" goto H



: C

netsh interface set interface "Wireless network connection" enabled

Exit

: E

netsh interface set interface "Wireless network connection" disabled

Exit

: F

netsh interface ip set address "Local Area Connection" Static 10.0.3.199 255.255.255.0 10.0.3.1

netsh interface ip set dnsservers "Local Area Connection" static 114.114.114.114 Primary

Exit

: G

netsh interface ip set address "Local Area Connection" DHCP

Exit

: H

netsh interface set interface "Local Area Connection" disabled

Exit


This article is from the "Technical Achievement Dream" blog, please be sure to keep this source http://526869727.blog.51cto.com/2769621/1721659

IP quick Settings. bat

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.