Welcome To baselogics.blogspot.in

Welcome to baselogics.blogspot.com

Place to Learn Programmes.

Bits and Bytes....

Computer Scientists Love Their Algorithms and Data Structures

Explore all new Mathematical Puzzles......

Jasper Roberts - Blog
Showing posts with label command prompt. Show all posts
Showing posts with label command prompt. Show all posts

Friday, November 6, 2015

Programme to turn your pc into wifi hotspot For windows users.....


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.