windows 7 鼠标右键添加隐藏显示文件

为了更方便的查看隐藏文件,将“显示隐藏文件和系统文件”添加到右键菜单,方法很简单,下面介绍下具体步骤:

1.打开记事本,将下面的代码拷贝进去:

为了更方便的查看隐藏文件,将“显示隐藏文件和系统文件”添加到右键菜单,方法很简单,下面介绍下具体步骤:

1.打开记事本,将下面的代码拷贝进去:

Dim WSHShell
Set WSHShell =  WScript.CreateObject("WScript.Shell")
sTitle1 = "SSH=0"
sTitle2 =  "SSH=1"

if  WSHShell.RegRead("HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvancedShowSuperHidden")  = 1 then

WSHShell.RegWrite  "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvancedShowSuperHidden",  "0", "REG_DWORD"
WSHShell.RegWrite  "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvancedHidden", "2",  "REG_DWORD"
WSHShell.SendKeys "{F5}+{F10}e"
'WSHShell.Popup "Poof, they're  gone!", 1, sTitle1, vbInformation

else

WSHShell.RegWrite  "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvancedShowSuperHidden",  "1", "REG_DWORD"
WSHShell.RegWrite  "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvancedHidden", "1",  "REG_DWORD"
WSHShell.SendKeys "{F5}+{F10}e"
'WSHShell.Popup "Here they  are!", 1, sTitle2, vbInformation

end if

Set WSHShell =  Nothing
WScript.Quit(0)

另存为 SuperHidden.vbs 文件(选择保存-格式选择所有文件,文件名输入 SuperHidden.vbs),并拷贝到系统盘的 Windows 目录下(也可以是任意目录)

2.另外新建一个文本文件,输入以下代码:

REGEDIT4

[HKEY_CLASSES_ROOTDirectoryBackgroundshellexContextMenuHandlersSuperHidden]
@="{00000000-0000-0000-0000-000000000012}"

[HKEY_CLASSES_ROOTCLSID{00000000-0000-0000-0000-000000000012}InProcServer32]
@=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,
68,64,6f,63,76,77,2e,64,6c,6c,00
"ThreadingModel"="Apartment"

[HKEY_CLASSES_ROOTCLSID{00000000-0000-0000-0000-000000000012}Instance]
"CLSID"="{3f454f0e-42ae-4d7c-8ea3-328250d6e272}"

[HKEY_CLASSES_ROOTCLSID{00000000-0000-0000-0000-000000000012}InstanceInitPropertyBag]
"method"="ShellExecute"
"Param1"="C:WINDOWSSuperHidden.vbs"
"command"="显示隐藏文件"
"CLSID"="{13709620-C279-11CE-A49E-444553540000}"

其中倒数第三行红色的部分是你存放 SuperHidden.vbs 文件的位置,倒数第二行蓝色的部分可以修改为你喜欢的文字,保存为1234.reg 注册表文件,双击导入注册表。

 

怕麻烦的话,可以下载 Win7优化大师 直接修改,下载地址

http://www.win7china.com/windows7master/

发表评论

电子邮件地址不会被公开。 必填项已用*标注