Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @ECHO OFF
- SET /P network=Press y to share your connection and n to stop sharing
- IF %network%==y GOTO :share
- IF %network%==n GOTO :stop
- GOTO :end
- :share
- netsh wlan set hostednetwork mode=allow ssid=CA key=abcdefgh
- netsh wlan start hostednetwork
- GOTO :end
- :stop
- netsh wlan stop hostednetwork
- :end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement