-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
menu.cmd
258 lines (224 loc) · 5.96 KB
/
menu.cmd
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
@echo off
color 0A
rem Verifica se o script esta sendo executado como administrador
net session >nul 2>&1
if %errorLevel% neq 0 (
color 0C
echo Solicitando permissao de administrador...
goto elevate
) else (
chcp 65001
goto runScript
)
:elevate
rem Reexecuta o script com permissoes de administrador
cd /d "%~dp0"
powershell -Command "Start-Process '%~s0' -Verb RunAs"
exit /b
:runScript
rem Muda para o diretorio correto
cd /d "%~dp0"
:menu
cls
color 0A
echo ==================================================
echo.
echo github.com/ravenastar-js/wintools
echo.
echo ==================================================
echo.
echo [ 1 ] Reiniciar para BIOS (UEFI) [ 15 ] Verificar arquivos de sistema
echo [ 2 ] Reiniciar normalmente [ 16 ] Abrir Visualizador de Eventos
echo [ 3 ] Desligar o PC [ 17 ] Abrir Quick Launch
echo [ 4 ] Iniciar Gerenciador de Tarefas [ 18 ] Criar Quick Launch
echo [ 5 ] Bloquear a tela [ 19 ] Desinstalar ou alterar um programa
echo [ 6 ] Abrir a pasta de aplicativos [ 20 ] Conexões de Rede
echo [ 7 ] Abrir God Mode [ 21 ] Mostrar o cache DNS
echo [ 8 ] Limpar arquivos temporários [ 22 ] Limpar o cache DNS
echo [ 9 ] Habilitar F8 [ 23 ] Abrir aba DNS navegador Firefox
echo [ 10 ] Desabilitar F8 [ 24 ] Abrir aba DNS navegador Google
echo [ 11 ] Criar ponto de restauração [ 25 ] Teclas de atalho do Windows
echo [ 12 ] Habilitar ponto de restauração ilimitado [ 26 ] Curso gratuito Windows Rápido e Seguro 2.0
echo [ 13 ] Exibir informações do sistema [ 27 ] Flash USB inicializáveis (softwares)
echo [ 14 ] Configurar início do sistema (msconfig)
echo [0m
echo [ [97mG[0m ] [97mAcessar Codigo Fonte no GitHub[0m
echo [ [91mE[0m ] [91mSair - Sai do script.[32m
echo ==================================================
set /p choice=Digite a sua escolha (1-27, G ou E):[93m
if /i "%choice%"=="1" goto reboot_bios
if /i "%choice%"=="2" goto reboot_normal
if /i "%choice%"=="3" goto shutdown
if /i "%choice%"=="4" goto task_manager
if /i "%choice%"=="5" goto lock_screen
if /i "%choice%"=="6" goto open_appsfolder
if /i "%choice%"=="7" goto open_godmode
if /i "%choice%"=="8" goto clean_temp
if /i "%choice%"=="9" goto enable_f8
if /i "%choice%"=="10" goto disable_f8
if /i "%choice%"=="11" goto create_restore_point
if /i "%choice%"=="12" goto enable_unlimited_restore_points
if /i "%choice%"=="13" goto system_info
if /i "%choice%"=="14" goto msconfig
if /i "%choice%"=="15" goto sfc_scan
if /i "%choice%"=="16" goto event_viewer
if /i "%choice%"=="17" goto open_quicklaunch
if /i "%choice%"=="18" goto create_quicklaunch
if /i "%choice%"=="19" goto uninstall_programs
if /i "%choice%"=="20" goto conexoes_redes
if /i "%choice%"=="21" goto display_dns
if /i "%choice%"=="22" goto flush_dns
if /i "%choice%"=="23" goto firefox_dns
if /i "%choice%"=="24" goto chrome_dns
if /i "%choice%"=="25" goto windows_keys
if /i "%choice%"=="26" goto wrs_2
if /i "%choice%"=="27" goto usb_boot_tools
if /i "%choice%"=="G" goto github
if /i "%choice%"=="E" goto exit
goto invalid_choice
: reboot_bios
echo [0m
powershell -command "Start-Process cmd.exe -ArgumentList '/c %~dp0cmd\reboot_bios.cmd' -Verb RunAs"
pause
goto menu
: reboot_normal
echo [0m
cmd /c %~dp0cmd\reboot_normal.cmd
pause
goto menu
: shutdown
echo [0m
cmd /c %~dp0cmd\shutdown.cmd
pause
goto menu
: task_manager
echo [0m
cmd /c %~dp0cmd\task_manager.cmd
pause
goto menu
: lock_screen
echo [0m
cmd /c %~dp0cmd\lock_screen.cmd
pause
goto menu
: open_appsfolder
echo [0m
cmd /c %~dp0cmd\open_appsfolder.cmd
pause
goto menu
: open_godmode
echo [0m
cmd /c %~dp0cmd\open_godmode.cmd
pause
goto menu
: clean_temp
echo [0m
powershell -command "Start-Process cmd.exe -ArgumentList '/c %~dp0cmd\clean_temp_files.cmd' -Verb RunAs"
pause
goto menu
: enable_f8
echo [0m
powershell -command "Start-Process cmd.exe -ArgumentList '/c %~dp0cmd\enable_f8.cmd' -Verb RunAs"
pause
goto menu
: disable_f8
echo [0m
powershell -command "Start-Process cmd.exe -ArgumentList '/c %~dp0cmd\disable_f8.cmd' -Verb RunAs"
pause
goto menu
: create_restore_point
echo [0m
powershell -command "Start-Process cmd.exe -ArgumentList '/c %~dp0cmd\create_restore_point.cmd' -Verb RunAs"
pause
goto menu
: enable_unlimited_restore_points
echo [0m
powershell -command "Start-Process cmd.exe -ArgumentList '/c %~dp0cmd\enable_unlimited_restore_points.cmd' -Verb RunAs"
pause
goto menu
: system_info
echo [0m
cmd /c %~dp0cmd\system_info.cmd
pause
goto menu
: msconfig
echo [0m
cmd /c %~dp0cmd\msconfig.cmd
pause
goto menu
: sfc_scan
echo [0m
cmd /c sfc /scannow
pause
goto menu
: event_viewer
echo [0m
cmd /c %~dp0cmd\event_viewer.cmd
pause
goto menu
: open_quicklaunch
echo [0m
start explorer "%appdata%\Microsoft\Internet Explorer\Quick Launch"
pause
goto menu
: create_quicklaunch
echo [0m
cmd /c %~dp0cmd\create_quicklaunch.cmd
pause
goto menu
: uninstall_programs
echo [0m
cmd /c %~dp0cmd\uninstall_programs.cmd
pause
goto menu
: conexoes_redes
echo [0m
cmd /c %~dp0cmd\conexoes_redes.cmd
pause
goto menu
: display_dns
echo [0m
cmd /c %~dp0cmd\display_dns.cmd
pause
goto menu
: flush_dns
echo [0m
cmd /c %~dp0cmd\flush_dns.cmd
pause
goto menu
: firefox_dns
echo [0m
cmd /c %~dp0cmd\firefox_dns.cmd
pause
goto menu
: chrome_dns
echo [0m
cmd /c %~dp0cmd\chrome_dns.cmd
pause
goto menu
: windows_keys
echo [0m
cmd /c %~dp0cmd\windows_keys.cmd
pause
goto menu
: wrs_2
echo [0m
cmd /c %~dp0cmd\wrs_2.cmd
pause
goto menu
: usb_boot_tools
echo [0m
cmd /c %~dp0cmd\usb_boot_tools.cmd
pause
goto menu
:github
echo [0m
start https://github.com/ravenastar-js/wintools
pause
goto menu
:exit
exit
:invalid_choice
powershell -command "& {Add-Type -AssemblyName PresentationFramework; [System.Windows.MessageBox]::Show('Escolher entre 1 a 27, G ou E.', 'Erro', 'OK', 'Error')}"
pause
goto menu