Win7 wireless network sharing Batch Processing

Source: Internet
Author: User
@ Echo offecho check that you are running the script as an administrator. Program Of: startpauseclsecho *************************************** * ***** echo * WiFi control * echo * 0 start WIF * echo * 1 creat WIF * echo * 2 stop WiFi * echo * 3 show information * echo * 4 exit * echo *************************************** * ***** set/p iit = Please input your choice: if "% IIT %" equ "1" (netsh WLAN set hostednetwork mode = allow SSID = it05 key = 12345678 // set the SSID and key here, the number of digits of the key must be at least 8 If % err Orlevel % NEQ 0 (echo failed! Goto end) echo please ensure your network is sharing! // Set your network and need it to be shared to your new infinite Virtual Network echo if so, press any key to continue! Echo else please go and set it and then come back here to go on! Pause netsh WLAN start hostednetwork if % errorlevel % NEQ 0 (echo failed! Goto end) echo success start!) If "% IIT %" equ "0" (netsh WLAN start hostednetwork if % errorlevel % NEQ 0 (echo failed to start wifi! Goto end) If "% IIT %" equ "2" (netsh WLAN set hostednetwork mode = disallow if % errorlevel % NEQ 0 (echo failed! Goto end) netsh WLAN stop hostednetwork if % errorlevel % NEQ 0 (echo failed! Goto end) echo success stop!) If "% IIT %" equ "3" (netsh WLAN show hostednetwork if % errorlevel % NEQ 0 (echo failed! Goto end) If "% IIT %" LSS "4" Goto startif "% IIT %" gtr "4" Goto start: endecho.> NUL

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.