【转】设置右键显示/隐藏系统文件

简介: @Set Prog=【小唐】设置右键显示/隐藏系统文件@echo off@color 0A:startcls@echo             ╭═══════════════════╮@echo             ║                     ║@echo       ╭══...

img_8f31edcc5d0446beae454f166d1c4668.jpg@Set Prog=【小唐】设置右键显示/隐藏系统文件
@echo off
@color 0A
:start
cls
@echo             ╭═══════════════════╮
@echo             ║                     ║
@echo       ╭═══┤%Prog% ├═══╮
@echo       ║     ║                     ║      ║
@echo       ║     ╰═══════════════════╯      ║
@echo       ║                                ║
@echo       ║         1. 加入右键菜单 显示/隐藏系统文件             ║
@echo       ║                                ║
@echo       ║         2. 除掉右键菜单 显示/隐藏系统文件            ║
@echo       ║                                ║
@echo       ║          Q. 退出                                   ║
@echo       ║                                    ║
@echo       ╟═══════════════════════════╢
@echo       没有版权请随意更改   我的博客http://hi.baidu.com/xiaotang12   
@echo       ╰───────────────────────────╯
Title %Prog%
@echo.      请输入:
@set yslbxz=""
@set /p yslbxz=
if /I "%yslbxz%"=="1" goto gpedit_1
if /I "%yslbxz%"=="2" goto compmgmt_1
if /I "%yslbxz%"=="Q" goto L_1
@cls
@echo ЖЖЖЖЖЖЖЖЖЖЖЖЖЖЖЖЖЖЖЖЖЖЖЖЖЖЖЖЖЖЖЖ
@echo Ж                                                             Ж
@echo Ж                 您输入错误!!!                                Ж
@echo Ж                 请重请输入                                   Ж
@echo Ж                 按任意键返回                                 Ж
@echo Ж                                                             Ж
@echo ЖЖЖЖЖЖЖЖЖЖЖЖЖЖЖЖЖЖЖЖЖЖЖЖЖЖЖЖЖЖЖЖ
@pause
@goto start:gpedit_1
echo REGEDIT4>加入右键.reg
echo [HKEY_CLASSES_ROOT\Directory\Background\shellex\ContextMenuHandlers\SuperHidden]>>加入右键.reg
echo @="{00000000-0000-0000-0000-000000000012}">>加入右键.reg
echo [HKEY_CLASSES_ROOT\CLSID\{00000000-0000-0000-0000-000000000012}\InProcServer32]>>加入右键.reg
echo @=hex(2):25,53,79,73,74,65,6d,52,6f,6f,74,25,5c,73,79,73,74,65,6d,33,32,5c,73,\>>加入右键.reg
echo    68,64,6f,63,76,77,2e,64,6c,6c,00>>加入右键.reg
echo "ThreadingModel"="Apartment">>加入右键.reg
echo [HKEY_CLASSES_ROOT\CLSID\{00000000-0000-0000-0000-000000000012}\Instance]>>加入右键.reg
echo "CLSID"="{3f454f0e-42ae-4d7c-8ea3-328250d6e272}">>加入右键.reg
echo [HKEY_CLASSES_ROOT\CLSID\{00000000-0000-0000-0000-000000000012}\Instance\InitPropertyBag]>>加入右键.reg
echo "method"="ShellExecute">>加入右键.reg
echo "Param1"="C:\\WINDOWS\\Sup.vbs">>加入右键.reg
echo "command"="显示/隐藏系统文件">>加入右键.reg
echo "CLSID"="{13709620-C279-11CE-A49E-444553540000}">>加入右键.reg
echo '誓不成佛个人爱好制作 QQ:992912>sup.vbs
echo Dim WSHShell>>sup.vbs
echo Set WSHShell = WScript.CreateObject("WScript.Shell")>>sup.vbs
echo sTitle1 = "SSH=0">>sup.vbs
echo sTitle2 = "SSH=1">>sup.vbs
echo if WSHShell.RegRead("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\ShowSuperHidden") = 1 then>>sup.vbs
echo WSHShell.RegWrite "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\Hidden\SHOWALL\", "0", "REG_DWORD">>sup.vbs
echo WSHShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\HideFileExt", "1", "REG_DWORD">>sup.vbs
echo WSHShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\ShowSuperHidden", "0", "REG_DWORD">>sup.vbs
echo WSHShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Hidden", "2", "REG_DWORD">>sup.vbs
echo WSHShell.SendKeys "{F5}+{F10}e">>sup.vbs
echo 'WSHShell.Popup "Poof, they're gone!", 1, sTitle1, vbInformation>>sup.vbs
echo else>>sup.vbs
echo WSHShell.RegWrite "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\Hidden\SHOWALL\", "1", "REG_DWORD">>sup.vbs
echo WSHShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\HideFileExt", "0", "REG_DWORD">>sup.vbs
echo WSHShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\ShowSuperHidden", "1", "REG_DWORD">>sup.vbs
echo WSHShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Hidden", "1", "REG_DWORD">>sup.vbs
echo WSHShell.SendKeys "{F5}+{F10}e">>sup.vbs
echo 'WSHShell.Popup "Here they are!", 1, sTitle2, vbInformation>>sup.vbs
echo end if>>sup.vbs
echo Set WSHShell = Nothing>>sup.vbs
echo WScript.Quit(0)>>sup.vbs
xcopy sup.vbs C:\WINDOWS\ /r /y>nul
attrib /s /d C:\WINDOWS\sup.vbs +r +s +h
regedit /s 加入右键.reg
del /q 加入右键.reg
del /q sup.vbs
cls
@@echo. ______________________________________________
@@echo.
@@echo. 加入右键 启用成功   按任意退出设置 & pause>nul
exit:compmgmt_1
echo REGEDIT4>除掉右键.reg
echo [-HKEY_CLASSES_ROOT\Directory\Background\shellex\ContextMenuHandlers\SuperHidden]>>除掉右键.reg
echo @="{00000000-0000-0000-0000-000000000012}">>除掉右键.reg
echo [-HKEY_CLASSES_ROOT\CLSID\{00000000-0000-0000-0000-000000000012}\InProcServer32]>>除掉右键.reg
echo @=hex(2):25,53,79,73,74,65,6d,52,6f,6f,74,25,5c,73,79,73,74,65,6d,33,32,5c,73,\>>除掉右键.reg
echo    68,64,6f,63,76,77,2e,64,6c,6c,00>>除掉右键.reg
echo "ThreadingModel"="Apartment">>除掉右键.reg
echo [-HKEY_CLASSES_ROOT\CLSID\{00000000-0000-0000-0000-000000000012}\Instance]>>除掉右键.reg
echo "CLSID"="{3f454f0e-42ae-4d7c-8ea3-328250d6e272}">>除掉右键.reg
echo [-HKEY_CLASSES_ROOT\CLSID\{00000000-0000-0000-0000-000000000012}\Instance\InitPropertyBag]>>除掉右键.reg
echo "method"="ShellExecute">>除掉右键.reg
echo "Param1"="C:\\WINDOWS\\Sup.vbs">>除掉右键.reg
echo "command"="显示/隐藏系统文件">>除掉右键.reg
echo "CLSID"="{13709620-C279-11CE-A49E-444553540000}">>除掉右键.reg
attrib /s /d C:\WINDOWS\sup.vbs -r -s -h
regedit /s 除掉右键.reg
del /q 除掉右键.reg
del /q C:\WINDOWS\sup.vbs
cls
@@echo. ______________________________________________
@@echo.
@@echo. 除掉右键 启用成功   按任意退出设置 & pause>nul
exit:L_1
@echo   退出
@echo┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
exnd

目录
相关文章
|
6月前
|
存储 Windows Python
【已解决】右键以某应用打开xx文件时,没有“始终”选项怎么办
【已解决】右键以某应用打开xx文件时,没有“始终”选项怎么办
|
Web App开发 前端开发
禁止双击选中文本
禁止双击选中文本
157 0
|
Windows
Win系统 - 系统双击文件总弹出属性窗口如何解决?
Win系统 - 系统双击文件总弹出属性窗口如何解决?
312 0
Win系统 - 系统双击文件总弹出属性窗口如何解决?
|
缓存 Windows
Windows图标显示异常解决方法。桌面图标异常,开始菜单图标异常,任务栏图标异常。图标缓存位置。
Windows图标显示异常解决方法。桌面图标异常,开始菜单图标异常,任务栏图标异常。图标缓存位置。
918 0
Windows图标显示异常解决方法。桌面图标异常,开始菜单图标异常,任务栏图标异常。图标缓存位置。
|
C# Windows 区块链