This repository has been archived by the owner on Dec 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
win10最新版.bat
858 lines (787 loc) · 23.9 KB
/
win10最新版.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
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
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
@ECHO off
TITLE Window 优化辅助工具
set TempFile_Name=%SystemRoot%\System32\BatTestUACin_SysRt%Random%.batemp
( echo "BAT Test UAC in Temp" >%TempFile_Name% ) 1>nul 2>nul
if exist %TempFile_Name% (
del %TempFile_Name% 1>nul 2>nul
GOTO Page 2
) else (
GOTO admin
)
::模块1
:Page 2
CLS
COLOR 2f
MODE con: COLS=70 LINES=20
ECHO.
ECHO ====================================================================#
ECHO Windows 工具
ECHO #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#
ECHO.
ECHO # 01、去除快捷方式小箭头 # 02、去除UAC小盾牌
ECHO # 03、网络异常修复 # 04、垃圾清理
ECHO # 05、系统激活(查看) # 06、系统配置(查看)
ECHO # 07、禁止window发送错误报告 # 08、关闭Windows Defender
ECHO # 09、关闭防火墙 # 10、检查更新而不自动下载更新
ECHO # 11、关闭自动播放或自动打开U盘 # 12、任务栏显示“星期几”
ECHO # 13、清理应用商店缓存 # 14、直接删除文件不进入回收站
ECHO # 15、关机时强制杀后台不等待 # 16、去除文字“快捷方式”
ECHO.
ECHO #-----------------------------------------------------------------#
ECHO 输入2进入二页 #
ECHO 输入3进入三页 #
ECHO #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#
ECHO ======================================================================
set /p a=. 请输入操作序号并回车(例如07):
if %a%==01 goto lnk
if %a%==02 goto uacico
if %a%==03 goto Network
if %a%==04 goto LJmenu
if %a%==05 goto activation
if %a%==06 goto configure
if %a%==07 goto report
if %a%==08 goto Defender
if %a%==09 goto firewall
if %a%==10 goto update
if %a%==11 goto autoUSB
if %a%==12 goto week
if %a%==13 goto wsreset
if %a%==14 goto DFD
if %a%==15 goto TO
if %a%==16 goto lnnk
if %a%==2 goto application
if %a%==3 goto wenjianjia
if %a%==exit exit
goto cho
:lnk
CLS
MODE con: COLS=40 LINES=15
ECHO.
ECHO.
ECHO **********************************
ECHO.
ECHO 去除快捷方式小箭头
ECHO.
ECHO 1.执行
ECHO.
ECHO 2.恢复
ECHO.
ECHO **********************************
ECHO.
ECHO.
Choice /C 12 /N /M 选择(1、2):
If ErrorLevel 1 If Not ErrorLevel 2 Goto lnk1
If ErrorLevel 2 If Not ErrorLevel 3 Goto lnk2
:lnk1
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons" /v 29 /d "%systemroot%\system32\imageres.dll,197" /t reg_sz /f
del "%userprofile%\AppData\Local\iconcache.db" /f /q
taskkill /f /im explorer.exe
start %systemroot%\explorer
ECHO 按任意键返回主菜单
pause>nul
GOTO Page 2
:lnk2
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons" /v 29 /f
del "%userprofile%\AppData\Local\iconcache.db" /f /q
taskkill /f /im explorer.exe
start %systemroot%\explorer
ECHO 按任意键返回主菜单
pause>nul
GOTO Page 2
:lnnk
CLS
MODE con: COLS=40 LINES=15
ECHO.
ECHO.
ECHO **********************************
ECHO.
ECHO 去除文字“快捷方式”
ECHO.
ECHO 1.执行
ECHO.
ECHO 2.恢复
ECHO.
ECHO **********************************
ECHO.
ECHO.
Choice /C 12 /N /M 选择(1、2):
If ErrorLevel 1 If Not ErrorLevel 2 Goto lnnk1
If ErrorLevel 2 If Not ErrorLevel 3 Goto lnnk2
:lnnk1
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer" /v link /d "00000000" /t REG_BINARY /f
del "%userprofile%\AppData\Local\iconcache.db" /f /q
taskkill /f /im explorer.exe
start %systemroot%\explorer
ECHO 按任意键返回主菜单
pause>nul
GOTO Page 2
:lnnk2
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer" /v link /f
del "%userprofile%\AppData\Local\iconcache.db" /f /q
taskkill /f /im explorer.exe
start %systemroot%\explorer
ECHO 按任意键返回主菜单
pause>nul
GOTO Page 2
:uacico
CLS
MODE con: COLS=40 LINES=15
ECHO.
ECHO.
ECHO **********************************
ECHO.
ECHO 去除UAC小盾牌
ECHO.
ECHO 1.执行
ECHO.
ECHO 2.恢复
ECHO.
ECHO **********************************
ECHO.
ECHO.
Choice /C 12 /N /M 选择(1、2):
If ErrorLevel 1 If Not ErrorLevel 2 Goto uacico1
If ErrorLevel 2 If Not ErrorLevel 3 Goto uacico2
:uacico1
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons" /v 77 /d "%systemroot%\system32\imageres.dll,197" /t reg_sz /f
del "%userprofile%\AppData\Local\iconcache.db" /f /q
taskkill /f /im explorer.exe
start %systemroot%\explorer
ECHO 按任意键返回主菜单
pause>nul
GOTO Page 2
:uacico2
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons" /v 77 /f
del "%userprofile%\AppData\Local\iconcache.db" /f /q
taskkill /f /im explorer.exe
start %systemroot%\explorer
ECHO 按任意键返回主菜单
pause>nul
GOTO Page 2
:LJmenu
CLS
MODE con: COLS=40 LINES=15
ECHO.
ECHO.
ECHO **********************************
ECHO.
ECHO 垃圾清理
ECHO.
ECHO 1.执行
ECHO.
ECHO 2.返回
ECHO.
ECHO **********************************
ECHO.
ECHO.
Choice /C 12 /N /M 选择(1、2):
If ErrorLevel 1 If Not ErrorLevel 2 Goto LJmenu1
If ErrorLevel 2 If Not ErrorLevel 3 Goto Page 2
:LJmenu1
CLS
MODE con: COLS=40 LINES=15
Color 2f
ECHO.
ECHO.
ECHO 清理垃圾文件,速度由电脑文件大小而定。
ECHO 在没看到结尾信息时。请勿关闭本窗口
ECHO.
ECHO 1.执行
ECHO.
ECHO 2.返回
Choice /C 12 /N /M 选择(1、2):
If ErrorLevel 1 If Not ErrorLevel 2 Goto LJmenu3
If ErrorLevel 2 If Not ErrorLevel 3 Goto Page 2
:activation
CLS
MODE con: COLS=40 LINES=15
slmgr.vbs -xpr
GOTO Page 2
:configure
CLS
MODE con: COLS=40 LINES=15
Echo wscript.Echo MsgBox ("请耐心等待,正在开启系统配置", 36, "提示")>tmp.vbs
@For /f %%i in ('cscript /nologo tmp.vbs') do If %%i==6 dxdiag >nul 2>nul
@Del /q tmp.vbs >nul 2>nul
GOTO Page 2
:LJmenu3
Cls
MODE con: COLS=200 LINES=50
Color 2f
ECHO 正在清除系统垃圾文件,请稍等......
del /f /s /q %systemdrive%\Windows\Temp\*.*
del /f /s /q %systemdrive%\Windows\ServiceProfiles\NetworkService\AppData\Local\Temp\*.*
del /f /s /q %systemdrive%\Windows\ServiceProfiles\LocalService\AppData\Local\Temp\*.*
del /f /s /q %systemdrive%\*.tmp
del /f /s /q %systemdrive%\*._mp
del /f /s /q %systemdrive%\*.log
del /f /s /q %systemdrive%\*.gid
del /f /s /q %systemdrive%\*.chk
del /f /s /q %systemdrive%\*.old
del /f /s /q %systemdrive%\recycled\*.*
del /f /s /q %windir%\*.bak
del /f /s /q %windir%\prefetch\*.*
rd /s /q %windir%\temp & md %windir%\temp
del /f /q %userprofile%\cookies\*.*
del /f /q %userprofile%\recent\*.*
del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*"
del /f /s /q "%userprofile%\Local Settings\Temp\*.*"
del /f /s /q "%userprofile%\recent\*.*"
del /f /s /q %windir%\system32\dllcache\*.*
echo 正在清除驱动在安装时留下的解压文件,请稍等......
del /f /s /q %SystemDrive%\AMD\*.*
del /f /s /q %windir%\Intel\*.*
del /f /s /q %windir%\NVIDIA\*.*
del /f /s /q %windir%\Prog\*.*
ECHO.
ECHO.
ECHO 按任意键返回主菜单
pause>nul
GOTO Page 2
:Network
CLS
MODE con: COLS=40 LINES=15
ECHO.
ECHO.
ECHO **********************************
ECHO.
ECHO 网络异常修复
ECHO.
ECHO 1.执行
ECHO.
ECHO 2.返回
ECHO.
ECHO **********************************
ECHO.
ECHO.
Choice /C 12 /N /M 选择(1、2):
If ErrorLevel 1 If Not ErrorLevel 2 Goto Network1
If ErrorLevel 2 If Not ErrorLevel 3 Goto Page 2
:Network1
CLS
@echo 正在重置网络设置中...
REM 重置网络设置
@taskkill /f /t /im IEXPLORE.exe >nul 2>nul
@netsh winsock reset all >nul 2>nul
@netsh int ipv4 reset all >nul 2>nul
@netsh int portproxy reset all >nul 2>nul
@netsh int tcp reset all >nul 2>nul
@netsh int teredo reset all >nul 2>nul
@echo 清理IE设置代理中..
@reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections" /v DefaultConnectionSettings /t REG_BINARY /d 4600000000 /f >nul 2>nul
@reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections" /v SavedLegacySettings /t REG_BINARY /d 4600000000 /f >nul 2>nul
rem 禁用代理
@reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 0 /f >nul 2>nul
rem 删除代理IP地址
@reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer /f >nul 2>nul
rem 禁用自动配制脚本(地址也被删除)
@reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v AutoConfigURL /f >nul 2>nul
@echo 清理ie缓存中..
rem 清理ie缓存
@RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 4
@RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 8
@for /f "tokens=4*" %%a in ('netsh interface show interface ^| findstr "已连接"') do set "ConName=%%~a"
netsh interface ip set dns %ConName% static 119.29.29.29
if '%errorlevel%' EQU '0' (
echo 修改网卡DNS成功
) else (
echo 修改网卡DNS失败
)
REM 修改当前网卡dns
ipconfig /flushdns
@echo 127.0.0.1 localhost>%systemroot%\system32\drivers\etc\hosts
REM HOSTS清空
@echo 正在同步本地时间...请稍候..
@sc config W32Time start= auto >nul 2>nul
REM 时间服务选择自动启动
@w32tm /register >nul 2>nul
REM 注册时间服务
@net start W32Time >nul 2>nul
REM 启动时间服务
@reg add HKLM\SYSTEM\CurrentControlSet\Services\W32Time\Config\ /v MaxNegPhaseCorrection /t REG_DWORD /d 0xffffffff /f >nul 2>nul
@reg add HKLM\SYSTEM\CurrentControlSet\Services\W32Time\Config\ /v MaxPosPhaseCorrection /t REG_DWORD /d 0xffffffff /f >nul 2>nul
REM 修改注册表值,修改 修改时间 的最大和最小间隔
@w32tm /config /manualpeerlist:"ntp1.aliyun.com" /syncfromflags:manual /reliable:yes /update >nul 2>nul
REM 联网修改时间
@w32tm /resync >nul 2>nul
@w32tm /resync >nul 2>nul
@w32tm /config /manualpeerlist:"ntp2.aliyun.com" /syncfromflags:manual /reliable:yes /update >nul 2>nul
REM 联网修改时间
@w32tm /resync >nul 2>nul
@w32tm /resync >nul 2>nul
REM 重启电脑提示
Echo wscript.Echo MsgBox ("操作已完成。需要重启电脑后才能生效,是否重启电脑", 36, "提示")>tmp.vbs
@For /f %%i in ('cscript /nologo tmp.vbs') do If %%i==6 Start shutdown -r -t 0 >nul 2>nul
@Del /q tmp.vbs >nul 2>nul
ECHO 按任意键返回主菜单
pause>nul
GOTO Page 2
:report
CLS
MODE con: COLS=40 LINES=15
ECHO.
ECHO.
ECHO **********************************
ECHO.
ECHO 禁止window发送错误报告
ECHO.
ECHO 1.执行
ECHO.
ECHO 2.恢复
ECHO.
ECHO **********************************
ECHO.
ECHO.
Choice /C 12 /N /M 选择(1、2):
If ErrorLevel 1 If Not ErrorLevel 2 Goto report1
If ErrorLevel 2 If Not ErrorLevel 3 Goto report2
:report1
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting" /v "Disabled" /d 1 /t REG_DWORD /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\PCHealth\ErrorReporting" /v "DoReport" /d 0 /t REG_DWORD /f
gpupdate /force
taskkill /f /im explorer.exe
start %systemroot%\explorer
ECHO 按任意键返回主菜单
pause>nul
GOTO Page 2
:report2
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting" /f
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\PCHealth" /f
gpupdate /force
taskkill /f /im explorer.exe
start %systemroot%\explorer
ECHO 按任意键返回主菜单
pause>nul
GOTO Page 2
:Defender
CLS
MODE con: COLS=40 LINES=15
ECHO.
ECHO.
ECHO **********************************
ECHO.
ECHO 关闭Windows Defender
ECHO.
ECHO 1.执行
ECHO.
ECHO 2.恢复
ECHO.
ECHO **********************************
ECHO.
ECHO.
Choice /C 12 /N /M 选择(1、2):
If ErrorLevel 1 If Not ErrorLevel 2 Goto Defender1
If ErrorLevel 2 If Not ErrorLevel 3 Goto Defender2
:Defender1
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender" /v "DisableAntiSpyware" /d 1 /t REG_DWORD /f
gpupdate /force
taskkill /f /im explorer.exe
start %systemroot%\explorer
ECHO 按任意键返回主菜单
pause>nul
GOTO Page 2
:Defender2
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender" /v "DisableAntiSpyware" /d 0 /t REG_DWORD /f
gpupdate /force
taskkill /f /im explorer.exe
start %systemroot%\explorer
sc start WinDefend
ECHO 按任意键返回主菜单
pause>nul
GOTO Page 2
:firewall
CLS
MODE con: COLS=40 LINES=15
ECHO.
ECHO.
ECHO **********************************
ECHO.
ECHO 关闭Windows防火墙
ECHO.
ECHO 1.执行
ECHO.
ECHO 2.恢复
ECHO.
ECHO **********************************
ECHO.
ECHO.
Choice /C 12 /N /M 选择(1、2):
If ErrorLevel 1 If Not ErrorLevel 2 Goto firewall1
If ErrorLevel 2 If Not ErrorLevel 3 Goto firewall2
:firewall1
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile" /v "EnableFirewall" /d 0 /t REG_DWORD /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsFirewall\PrivateProfile" /v "EnableFirewall" /d 0 /t REG_DWORD /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsFirewall\PublicProfile" /v "EnableFirewall" /d 0 /t REG_DWORD /f
gpupdate /force
taskkill /f /im explorer.exe
start %systemroot%\explorer
ECHO 按任意键返回主菜单
pause>nul
GOTO Page 2
:firewall2
sc config MpsSvc start=auto
sc start MpsSvc
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile" /v "EnableFirewall" /f
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsFirewall\PrivateProfile" /v "EnableFirewall" /f
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsFirewall\PublicProfile" /v "EnableFirewall" /f
gpupdate /force
taskkill /f /im explorer.exe
start %systemroot%\explorer
ECHO 按任意键返回主菜单
pause>nul
GOTO Page 2
:update
CLS
MODE con: COLS=40 LINES=15
ECHO.
ECHO.
ECHO **********************************
ECHO.
ECHO 检查更新而不自动下载更新
ECHO.
ECHO 1.执行
ECHO.
ECHO 2.恢复
ECHO.
ECHO **********************************
ECHO.
ECHO.
Choice /C 12 /N /M 选择(1、2):
If ErrorLevel 1 If Not ErrorLevel 2 Goto update1
If ErrorLevel 2 If Not ErrorLevel 3 Goto update2
:update1
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v "NoAutoUpdate" /d 0 /t REG_DWORD /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v "AUOptions" /d 2 /t REG_DWORD /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v "ScheduledInstallDay" /d 0 /t REG_DWORD /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v "ScheduledInstallTime" /d 3 /t REG_DWORD /f
gpupdate /force
taskkill /f /im explorer.exe
start %systemroot%\explorer
ECHO 按任意键返回主菜单
pause>nul
GOTO Page 2
:update2
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /f
gpupdate /force
taskkill /f /im explorer.exe
start %systemroot%\explorer
ECHO 按任意键返回主菜单
pause>nul
GOTO Page 2
:autoUSB
CLS
MODE con: COLS=40 LINES=14
ECHO.
ECHO.
ECHO **********************************
ECHO.
ECHO 关闭自动播放或自动打开U盘
ECHO.
ECHO 1.执行
ECHO.
ECHO 2.恢复
ECHO.
ECHO **********************************
ECHO.
ECHO.
Choice /C 12 /N /M 选择(1、2):
If ErrorLevel 1 If Not ErrorLevel 2 Goto autoUSB1
If ErrorLevel 2 If Not ErrorLevel 3 Goto autoUSB2
:autoUSB1
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoDriveTypeAutoRun" /d 255 /t REG_DWORD /f
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoDriveTypeAutoRun" /d 255 /t REG_DWORD /f
gpupdate /force
taskkill /f /im explorer.exe
start %systemroot%\explorer
ECHO 按任意键返回主菜单
pause>nul
GOTO Page 2
:autoUSB2
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoDriveTypeAutoRun" /f
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoDriveTypeAutoRun" /f
gpupdate /force
taskkill /f /im explorer.exe
start %systemroot%\explorer
ECHO 按任意键返回主菜单
pause>nul
GOTO Page 2
:week
CLS
MODE con: COLS=40 LINES=15
ECHO.
ECHO.
ECHO **********************************
ECHO.
ECHO 任务栏日期显示“星期几”
ECHO.
ECHO 1.执行
ECHO.
ECHO 2.恢复
ECHO.
ECHO **********************************
ECHO.
ECHO.
Choice /C 12 /N /M 选择(1、2):
If ErrorLevel 1 If Not ErrorLevel 2 Goto week1
If ErrorLevel 2 If Not ErrorLevel 3 Goto week2
:week1
reg add "HKEY_CURRENT_USER\Control Panel\International" /v "sLongDate" /d "yyyy'年'M'月'd'日', dddd" /t REG_SZ /f
reg add "HKEY_CURRENT_USER\Control Panel\International" /v "sShortDate" /d "yyyy/M/d/ddd" /t REG_SZ /f
taskkill /f /im explorer.exe
start %systemroot%\explorer
ECHO 按任意键返回主菜单
pause>nul
GOTO Page 2
:week2
reg add "HKEY_CURRENT_USER\Control Panel\International" /v "sLongDate" /d "yyyy'年'M'月'd'日'" /t REG_SZ /f
reg add "HKEY_CURRENT_USER\Control Panel\International" /v "sShortDate" /d "yyyy/M/d" /t REG_SZ /f
taskkill /f /im explorer.exe
start %systemroot%\explorer
ECHO 按任意键返回主菜单
pause>nul
GOTO Page 2
:wsreset
CLS
MODE con: COLS=40 LINES=15
ECHO.
ECHO.
ECHO **********************************
ECHO.
ECHO 清理应用商店缓存
ECHO.
ECHO 1.执行
ECHO.
ECHO 2.恢复
ECHO.
ECHO **********************************
ECHO.
ECHO.
Choice /C 12 /N /M 选择(1、2):
If ErrorLevel 1 If Not ErrorLevel 2 Goto wsreset1
If ErrorLevel 2 If Not ErrorLevel 3 Goto wsreset2
:wsreset1
CLS
echo 如果你之前使用过本工具
echo.
echo 请在将打开的任务管理器中重启资源管理器
echo.
echo 桌面闪一下才行
echo.
echo 再按任意键继续执行操作
start taskmgr
pause>nul
wsreset
ECHO 按任意键返回主菜单
pause>nul
GOTO Page 2
:wsreset2
echo 缓存已清除,无法恢复。
ECHO 按任意键返回主菜单
pause>nul
GOTO Page 2
:DFD
CLS
MODE con: COLS=40 LINES=15
ECHO.
ECHO.
ECHO **********************************
ECHO.
ECHO 直接删除文件不进入回收站
ECHO.
ECHO 1.执行
ECHO.
ECHO 2.恢复
ECHO.
ECHO **********************************
ECHO.
ECHO.
Choice /C 12 /N /M 选择(1、2):
If ErrorLevel 1 If Not ErrorLevel 2 Goto DFD1
If ErrorLevel 2 If Not ErrorLevel 3 Goto DFD2
:DFD1
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoRecycleFiles" /d 1 /t REG_dword /f
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" /v "{645FF040-5081-101B-9F08-00AA002F954E}" /d 1 /t REG_dword /f
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "ConfirmFileDelete" /d 1 /t REG_dword /f
gpupdate /force
taskkill /f /im explorer.exe
start %systemroot%\explorer
ECHO 按任意键返回主菜单
pause>nul
GOTO Page 2
:DFD2
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoRecycleFiles" /f
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" /v "{645FF040-5081-101B-9F08-00AA002F954E}" /d 0 /t REG_dword /f
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "ConfirmFileDelete" /f
gpupdate /force
taskkill /f /im explorer.exe
start %systemroot%\explorer
ECHO 按任意键返回主菜单
pause>nul
GOTO Page 2
:TO
CLS
MODE con: COLS=40 LINES=14
ECHO.
ECHO.
ECHO **********************************
ECHO.
ECHO 关机时强制杀后台不等待
ECHO.
ECHO 1.执行
ECHO.
ECHO 2.恢复
ECHO.
ECHO **********************************
ECHO.
ECHO.
Choice /C 12 /N /M 选择(1、2):
If ErrorLevel 1 If Not ErrorLevel 2 Goto TO1
If ErrorLevel 2 If Not ErrorLevel 3 Goto TO2
:TO1
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control" /v "WaitToKillServiceTimeout" /d 0 /t REG_SZ /f
taskkill /f /im explorer.exe
start %systemroot%\explorer
ECHO 按任意键返回主菜单
pause>nul
GOTO Page 2
:TO2
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control" /v "WaitToKillServiceTimeout" /d 5000 /t REG_SZ /f
taskkill /f /im explorer.exe
start %systemroot%\explorer
ECHO 按任意键返回主菜单
pause>nul
GOTO Page 2
::模块2
:application
CLS
COLOR 2f
MODE con: COLS=55 LINES=25
ECHO.
ECHO ===================================================#
ECHO Windows 工具安装
ECHO 以下软件有免费版的下载免费版
ECHO #+++++++++++++++++++++++++++++++++++++++++++++++#
ECHO.
ECHO # 01、PotPlayer 视频播放器
ECHO # 02、Bandizip
ECHO # 03、微软常用运行库合集
ECHO # 04、geek
ECHO # 05、Steam
ECHO # 06、Epic Games Launcher
ECHO # 07、Xbox
ECHO # 08、Internet Download Manager
ECHO # 09、office tool plus + KMS 地址列表
ECHO #-----------------------------------------------#
ECHO #-----------------------------------------------#
ECHO 输入1进入一页 #
ECHO 输入3进入三页 #
ECHO #+++++++++++++++++++++++++++++++++++++++++++++++#
ECHO ====================================================
set /p b=. 请输入操作序号并回车(例如07):
if %b%==01 goto PotPlayer
if %b%==02 goto Bandizip
if %b%==03 goto chang yong yun hang ku
if %b%==04 goto geek
if %b%==05 goto Steam
if %b%==06 goto Epic Games Launcher
if %b%==07 goto Xbox
if %b%==08 goto IDM
if %b%==09 goto office tool plus
if %b%==1 goto Page 2
if %b%==3 goto wenjianjia
goto cho
::@echo off
::start 链接
::GOTO application
:PotPlayer
@echo off
start http://potplayer.tv/?lang=zh_CN
GOTO application
:Bandizip
@echo off
start https://cn.bandisoft.com/bandizip/dl/
GOTO application
:chang yong yun hang ku
@echo off
start http://dreamcast2.ysepan.com/
GOTO application
:geek
@echo off
start https://geekuninstaller.com/
GOTO application
:Steam
@echo off
start https://store.steampowered.com/
GOTO application
:Epic Games Launcher
@echo off
start https://www.epicgames.com/site/zh-CN/home
GOTO application
:Xbox
@echo off
start https://apps.microsoft.com/store/detail/xbox/9MV0B5HZVK9Z
GOTO application
:IDM
@echo off
start www.internetdownloadmanager.com
GOTO application
:office tool plus
@echo off
start https://www.coolhub.top/tech-articles/kms_list.html
start https://otp.landian.vip/zh-cn/download.html
GOTO application
::模块3
:wenjianjia
CLS
COLOR 2f
MODE con: COLS=55 LINES=15
ECHO.
ECHO ===================================================#
ECHO Windows 打开文件夹
ECHO #+++++++++++++++++++++++++++++++++++++++++++++++#
ECHO.
ECHO # 01、Windows 手动添加开机启动项
ECHO # 02、Windows 电脑缓存文件
ECHO # 03、Windows 最近使用的项目
ECHO.
ECHO #-----------------------------------------------#
ECHO 输入1进入一页 #
ECHO 输入2进入二页 #
ECHO #+++++++++++++++++++++++++++++++++++++++++++++++#
ECHO ====================================================
set /p c=. 请输入操作序号并回车(例如07):
if %c%==01 goto StartUp
if %c%==02 goto Temp
if %c%==03 goto zuijinshiyongdexiangmu
if %c%==1 goto Page 2
if %c%==2 goto application
goto cho
:StartUp
@echo off
start explorer "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp"
GOTO wenjianjia
:Temp
@echo off
start explorer "%USERPROFILE%\AppData\Local\Temp"
GOTO wenjianjia
:zuijinshiyongdexiangmu
@echo off
start explorer "%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Recent"
GOTO wenjianjia
:cho
CLS
COLOR 0a
MODE con: COLS=30 LINES=5
echo.
echo 输入有误,按任意键返回主菜单
pause>nul
GOTO Page 2
:admin
CLS
COLOR 0a
MODE con: COLS=30 LINES=8
ECHO 操作失败。
echo 请右键“以管理员身份运行”
ECHO 按任意键退出...
PAUSE >nul
exit