Programme to Run Wifi - Hotspot Using command prompt.
-------------------------------------------------------------------------------------------------------------
ECHO OFF
:MENU
CLS
echo Hello! This is a short Program to help You enable WiFi Hotspot on Windows:
ECHO.
ECHO ...............................................
ECHO PRESS 1, 2, 3, 4, 5 to select your task:
ECHO ...............................................
ECHO.
ECHO 1 - Create a Wifi Hotspot
ECHO 2 - Turn On
ECHO 3 - Turn Off
ECHO 4 - Fix No Internet
ECHO 5 - Exit
ECHO.
SET /P M=Type 1, 2, 3, 4 or 5 then press ENTER:
IF %M%==1 GOTO Createwifi
IF %M%==2 GOTO turnon
IF %M%==3 GOTO turnoff
IF %M%==4 GOTO fixerror
IF %M%==5 GOTO Exit
:Createwifi
SET /P S=Hotspot Name:
SET /P K=Password:
netsh wlan set hostednetwork mode=allow ssid=%S% key=%K%
PAUSE
GOTO MENU
:turnon
netsh wlan start hostednetwork
PAUSE
GOTO MENU
:turnoff
netsh wlan stop hostednetwork
PAUSE
GOTO MENU
:fixerror
netsh wlan stop hostednetwork
netsh wlan start hostednetwork
PAUSE
GOTO MENU
------------------------------------------------------------------------------------------------------------------
Copy the above programme to Notepad and save with .bat file extension,
make sure your wifi is turned on,
then open .bat file administrator and follow the steps
first enter 1 and set hotspot-name and password (not less than 8 characters )
then enter 2 to start your hotspot.
0 comments:
Post a Comment
Your Suggestions and Reviews are valuable to us to make this blog better........