装机助理重装系统 重装定义系统重装

立即下载

ghost win7系统桌面右键菜单添加显示/隐藏文件扩展名的方法

时间:2019-03-11 16:40:36来源:装机助理重装系统www.zhuangjizhuli.com作者:由管理员整理分享

 一般在操作Windows7系统中我们经常会需要查看隐藏文件的功能,用完之后再将其隐藏起来,这样就不会隐藏的文件在磁盘中碍眼了。但是最近却有ghost win7系统用户发现,要查看或隐藏“隐藏文件”需要非常繁琐的操作,通常做基本的操作就是打开计算机,点击组织,在点击文件夹和搜索选项,在切换到查看选项卡,在高级设置框内找到显示隐藏的文件、文件夹或驱动器,非常不便。何不在右键菜单中添加一个显示/隐藏,隐藏文件的选项呢?对此下面小编就来介绍一下在右键菜单添加显示/隐藏 隐藏文件的操作方法吧。
ghost win7系统桌面右键菜单添加显示/隐藏文件扩展名的方法
    1、首先,在电脑桌面上新建一个文本文档,在打开文本文档,在里面输入下面代码:
@echo off
mode con cols=100 lines=10
title 右键隐藏文件+扩展名     修改:QQ524801143
color 0b
if not exist "%windir%SuperHidden.vbs" goto setup
reg delete "HKCRCLSID{00000000-0000-0000-0000-000000000012}" /f >nul 2>nul
del /f /q "%windir%SuperHidden.vbs" >nul 2>nul
echo.&echo 卸除完毕。 要重新安装请再执行一遍本bat
pause>nul
exit


:setup
color 0a
>"%windir%SuperHidden.vbs" echo Dim WSHShell
>>"%windir%SuperHidden.vbs" echo Set WSHShell = WScript.CreateObject("WScript.Shell")

>>"%windir%SuperHidden.vbs" echo WSHShell.RegWrite "HKCRCLSID{00000000-0000-0000-0000-000000000012}InstanceInitPropertyBagCLSID", "{13709620-C279-11CE-A49E-444553540000}", "REG_SZ"

>>"%windir%SuperHidden.vbs" echo WSHShell.RegWrite "HKCRCLSID{00000000-0000-0000-0000-000000000012}InstanceInitPropertyBagmethod", "ShellExecute", "REG_SZ"

>>"%windir%SuperHidden.vbs" echo if WSHShell.RegRead("HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvancedHidden") = 1 then
>>"%windir%SuperHidden.vbs" echo WSHShell.RegWrite "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvancedShowSuperHidden", "0", "REG_DWORD"
>>"%windir%SuperHidden.vbs" echo WSHShell.RegWrite "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvancedHidden", "2", "REG_DWORD"
>>"%windir%SuperHidden.vbs" echo WSHShell.RegWrite "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvancedHideFileExt", "0", "REG_DWORD"
>>"%windir%SuperHidden.vbs" echo WSHShell.RegWrite "HKCRCLSID{00000000-0000-0000-0000-000000000012}InstanceInitPropertyBagcommand", "显示隐藏的文件和文件夹", "REG_SZ"
>>"%windir%SuperHidden.vbs" echo WSHShell.SendKeys "{F5}+{F10}e"

>>"%windir%SuperHidden.vbs" echo else

>>"%windir%SuperHidden.vbs" echo WSHShell.RegWrite "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvancedShowSuperHidden", "1", "REG_DWORD"
>>"%windir%SuperHidden.vbs" echo WSHShell.RegWrite "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvancedHidden", "1", "REG_DWORD"
>>"%windir%SuperHidden.vbs" echo WSHShell.RegWrite "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvancedHideFileExt", "0", "REG_DWORD"
>>"%windir%SuperHidden.vbs" echo WSHShell.RegWrite "HKCRCLSID{00000000-0000-0000-0000-000000000012}InstanceInitPropertyBagcommand", "不显示隐藏的文件和文件夹", "REG_SZ"
>>"%windir%SuperHidden.vbs" echo WSHShell.SendKeys "{F5}+{F10}e"

>>"%windir%SuperHidden.vbs" echo end if

>>"%windir%SuperHidden.vbs" echo Set WSHShell = Nothing
>>"%windir%SuperHidden.vbs" echo WScript.Quit(0)

reg export "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvanced" "%temp%__.reg" >nul
for /f "tokens=2 delims==" %%. in ('find/i "HideFileExt" "%temp%__.reg"') do set v=%%~.
del "%temp%__.reg"
set v=%v:~-1%
if %v% equ 0 set vv=不显示隐藏的文件和文件夹
if %v% equ 1 set vv=显示隐藏的文件和文件夹

>"%temp%_.reg" echo REGEDIT4
>>"%temp%_.reg" echo [HKEY_CLASSES_ROOTDirectoryBackgroundshellexContextMenuHandlersSuperHidden]
>>"%temp%_.reg" echo @="{00000000-0000-0000-0000-000000000012}"
>>"%temp%_.reg" echo [HKEY_CLASSES_ROOTCLSID{00000000-0000-0000-0000-000000000012}InProcServer32]
>>"%temp%_.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,
>>"%temp%_.reg" echo   68,64,6f,63,76,77,2e,64,6c,6c,00
>>"%temp%_.reg" echo "ThreadingModel"="Apartment"
>>"%temp%_.reg" echo [HKEY_CLASSES_ROOTCLSID{00000000-0000-0000-0000-000000000012}Instance]
>>"%temp%_.reg" echo "CLSID"="{3f454f0e-42ae-4d7c-8ea3-328250d6e272}"
>>"%temp%_.reg" echo [HKEY_CLASSES_ROOTCLSID{00000000-0000-0000-0000-000000000012}InstanceInitPropertyBag]
>>"%temp%_.reg" echo "method"="ShellExecute"
>>"%temp%_.reg" echo "Param1"="SuperHidden.vbs"
>>"%temp%_.reg" echo "CLSID"="{13709620-C279-11CE-A49E-444553540000}"
>>"%temp%_.reg" echo "command"="%vv%"
regedit /s "%temp%_.reg"
del /f /q "%temp%_.reg"
echo.&echo 已在右键中添加显示隐藏文件和文件夹  再次执行本bat即可卸载
pause>nul
exit
    2、然后,在点击文件,在点击另存为,将保存类型修改为所有文件,在将文件后缀txrt改成bat,再点击保存。
    3、最后再双击运行刚另存的bat文件,运行以后即可在右键菜单中看到显示/隐藏个隐藏文件的选项。
    以上就是有关于电脑系统右键菜单添加隐藏/显示隐藏文件的操作方法了,如果以后用户也遇到这样的问题,不妨按照教程去解决操作吧,希望这个教程对大家有所帮助。

分享到:

相关教程

分享