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