资源描述:
《将显示隐藏文件的命令添加进右键菜单》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、将显示隐藏文件的命令添加进右键菜单有朋友在求助区问如何添加“显示隐藏文件和系统文件”到右键菜单,恰好搜到了方法,拿出来共享一下,希望对有需要的朋友有帮助。方法很简单,Step1打开记事本,将下面的代码拷贝进去:1.DimWSHShell2.SetWSHShell=WScript.CreateObject("WScript.Shell")3.sTitle1="SSH=0"4.sTitle2="SSH=1"5.6.ifWSHShell.RegRead("HKCUSoftwareMicrosoftWindowsCurrentVersionExplorer
2、AdvancedShowSuperHidden")=1then7.8.WSHShell.RegWrite"HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvancedShowSuperHidden","0","REG_DWORD"9.WSHShell.RegWrite"HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvancedHidden","2","REG_DWORD"10.WSHShell.SendKeys"{F5
3、}+{F10}e"11.'WSHShell.Popup"Poof,they'regone!",1,sTitle1,vbInformation12.13.else14.15.WSHShell.RegWrite"HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvancedShowSuperHidden","1","REG_DWORD"16.WSHShell.RegWrite"HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvan
4、cedHidden","1","REG_DWORD"17.WSHShell.SendKeys"{F5}+{F10}e"18.'WSHShell.Popup"Heretheyare!",1,sTitle2,vbInformation19.20.endif21.22.SetWSHShell=Nothing23.WScript.Quit(0)复制代码另存为SuperHidden.vbs文件(选择保存-格式选择所有文件,文件名输入SuperHidden.vbs),并拷贝到Windows目录下(也可以是任意目录)Step2另外新建一个文档文件,输入以下代码:1.REG
5、EDIT42.3.[HKEY_CLASSES_ROOTDirectoryBackgroundshellexContextMenuHandlersSuperHidden]4.@="{00000000-0000-0000-0000-000000000012}"5.6.[HKEY_CLASSES_ROOTCLSID{00000000-0000-0000-0000-000000000012}InProcServer32]7.@=hex(2):25,53,79,73,74,65,6d,52,6f,6f,74,25,5c,73,79,73,74,65,6d
6、,33,32,5c,73,8.68,64,6f,63,76,77,2e,64,6c,6c,009."ThreadingModel"="Apartment"10.11.[HKEY_CLASSES_ROOTCLSID{00000000-0000-0000-0000-000000000012}Instance]12."CLSID"="{3f454f0e-42ae-4d7c-8ea3-328250d6e272}"13.14.[HKEY_CLASSES_ROOTCLSID{00000000-0000-0000-0000-000000000012}Insta
7、nceInitPropertyBag]15."method"="ShellExecute"16."Param1"="C:\WINDOWS\SuperHidden.vbs"17."command"="Show/HideHiddenFiles"18."CLSID"="{13709620-C279-11CE-A49E-444553540000}"复制代码其中倒数第三行红色的部分是你安装Windows的位置,或者vbs脚本所在位置,倒数第二行蓝色的部分可以修改为你喜欢的文字保存为.reg注册表文件,双击导入注册表.Step3不需要重启和注销,直接可以看到效果:(
8、261.72KB)