@ 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