Batch

  
of shared network connection to WLAN under Win7 Copy the following code to Notepad, select Save As, select the file type as all files, and name the file as suffix bat (***.bat). Must be run as an administrator! Ways to turn on network sharing: Try not to change ip: Code part: @echo off :head cls echo. echo ------------------------ -------------------------------------------------- ----- Echo only win7 is available, please run as administrator, not run as administrator, please exit and run as administrator again echo --by HKKKYY echo ------------- -------------------------------------------------- ---------------- echo Please select A, B, C, D, W: choice /n /c ABCDW /m "A. Configure wireless router, B read wireless routing Configuration, C. Open the wireless router, D. Exit the program, W. Help information " if errorlevel 5 goto help if errorlevel 4 goto exit if errorlevel 3 goto start if errorlevel 2 goto load if errorlevel 1 goto creat :error echo. echo There is configuration information or configuration error, please reconfigure the router :help echo. echo help information! Echo Open internet share: Echo. Echo 1. Open Network and Sharing Center Echo 2. Change adapter settings on the left Echo 3. Right click on the network adapter connected to the internet Echo 4. Select Properties Echo 5. Select the rightmost share Echo 6. Allow other network users to connect to the hook. Echo 7. Select Microsoft Virtual WiFi Miniport Adapter. 8. Confirm all the way, the setup is complete! Echo. echo More questions, please send to email: [email protected] pause goto head :creat echo --------------------------- ------------------ set /p ssid=Please enter the wireless network name and press Enter: set /p key=Please enter the wireless network password and press Enter to finish ( The password is a digit or letter of 8 digits or more): echo %ssid%.%key% >wlan.inf goto load :load if not exist wlan.inf goto error
Copyright © Windows knowledge All Rights Reserved