Win7 Create a WiFi hotspot script share _dos/bat

Source: Internet
Author: User

To illustrate, this feature only applies to the Win7 system, and to ensure that the computer has a wireless network card, and the correct installation of the driver. Also need to do is to share the connected network, the method can be Baidu.

The following file is saved as a Wlan.bat file, and then it's ready to run.

Copy Code code as follows:

@echo off
Path=c:\windows\system32
Echo Welcome use please run this file as an administrator
Echo---------------------------------------------------
echo 1. Enable and start a broadcast wireless managed network
Echo 2. Disable and stop broadcast virtual wireless networks
Echo 3. Displays the settings for the wireless managed network, including the list of connected users
Echo 4. Set up a new WPA2-PSK key for the virtual wireless network
Echo 5. Configuration initialization, with instructions (Use CAUTION!!! )
Echo---------------------------------------------------
set/p s= Please enter the number in front of the task and press ENTER to determine:
If%s% equ 1 goto A
If%s% equ 2 goto b
If%s% equ 3 goto C
If%s% equ 4 goto D
If%s% equ 5 goto E
: A
Netsh wlan start hostednetwork
Pause
Exit
: b
Netsh wlan stop hostednetwork
Pause
Exit
: C
Netsh wlan show hostednetwork
Pause
Exit
:d
Netsh wlan refresh hostednetwork
Pause
Exit
: E
Netsh wlan set hostednetwork mode=allow ssid=yii key=15319910609
echo This virtual network can only be built in the Win7 system environment, the virtual network password is 15319910609, the construction of Win7 virtual wireless network environment needs to be used in the current network sharing, the specific method can refer to the Baidu literature!!!
Pause
Exit

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.