-
Notifications
You must be signed in to change notification settings - Fork 0
/
HotspotFix.bat
104 lines (89 loc) · 1.8 KB
/
HotspotFix.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
@echo off
%1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~s0 ::","","runas",1)(window.close)&&exit
IF NOT EXIST %appdata%\HotspotFix (
mkdir %appdata%\HotspotFix
echo.
)
cd %appdata%\HotspotFix
:menu
cls
echo AP Hotspot Fix
echo.
echo Created by Nerexbcd.
echo.
echo MENU:
echo [1] Fix the Hotspot
echo [2] Restore Default (recomende after playing)
echo [3] Change Wireless Interface
echo [4] Exit
echo.
set /p Input=Choose(1/2/3/4):
If /I "%Input%"=="1" goto 1
If /I "%Input%"=="2" goto 2
If /I "%Input%"=="3" goto 3
If /I "%Input%"=="4" goto 4
goto other
:1
cls
echo AP Hotspot Fix
echo.
echo Created by Nerexbcd.
echo.
IF NOT EXIST ".\interface.txt" (
echo Plz Configure the interface first!!
pause
goto menu
)
set /p "interfacename="<"interface.txt"
echo Activate the VR Hotspot Fix
echo.
echo Current Wireless Interface: %interfacename%
netsh wlan disconnect
timeout 2
netsh wlan set autoconfig enabled=no interface="%interfacename%"
pause
goto menu
:2
cls
echo AP Hotspot Fix
echo.
echo Created by Nerexbcd.
echo.
IF NOT EXIST ".\interface.txt" (
echo Plz Configure the interface first!!
pause
goto menu
)
set /p "interfacename="<"interface.txt"
echo Deactivate VR Hotspot Fix
echo.
echo Current Wireless Interface: %interfacename%
netsh wlan set autoconfig enabled=yes interface="%interfacename%"
pause
goto menu
:3
cls
echo AP Hotspot Fix
echo.
echo Created by Nerexbcd.
echo.
echo Change Interface
echo.
netsh interface show interface
set /P "interface=Please copy-paste your wifi interface's name from the last column: "
echo.
echo %interface%>.\interface.txt
pause
goto menu
:4
exit
:n
cls
goto menu
:other
echo.
echo Sorry, that's not an option!
echo.
pause
cls
goto menu