随着电脑的使用率越来越高,我们有时候可能会遇到对win7系统将显示隐藏文件命令添加进右键菜单进行设置,如果我们需要对win7系统将显示隐藏文件命令添加进右键菜单进行设置时,要怎么处理win7系统将显示隐藏文件命令添加进右键菜单呢?我们按照打开记事本,将下面的代码拷贝进去就搞定了;接下来给大家带来win7系统将显示隐藏文件命令添加进右键菜单的详细步骤:
方法很简单,
Step 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目录下(也可以是任意目录)
Step2 另外新建一个文档文件,输入以下代码: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"="Show/Hide Hidden Files"
"CLSID"="{13709620-C279-11CE-A49E-444553540000}"
复制代码其中倒数第三行红色的部分是你安装Windows的位置,或者vbs脚本所在位置,倒数第二行蓝色的部分可以修改为你喜欢的文字
保存为.reg注册表文件,双击导入注册表.
上面给大家介绍的就是关于win7系统将显示隐藏文件命令添加进右键菜单的操作方法,还有不会的朋友可以按照上面的步骤来解决,希望帮助到大家。
427 个用户觉得很有用
发表评论