WIN7鼠标右键添加 显示/隐藏 文件扩展名

新建一个TXT文本文档,将以下内容复制进去,保存为SuperHidden.vbs,放入C:Windows目录下

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

if WshSHell.RegRead("HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvancedHideFileExt") = 0 then

WshSHell.RegWrite "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvancedHideFileExt", "1", "REG_DWORD"

WshSHell.SendKeys "{F5}+{F10}e"
else

WshSHell.RegWrite "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvancedHideFileExt", "0", "REG_DWORD"

WshSHell.SendKeys "{F5}+{F10}e"
end if

Set WSHShell = Nothing
WScript.Quit(0)

再将以下内容复制到TXT,保存为123.reg文件,运行即可


Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT*shellDisplayFileExt]
@="显示/隐藏 文件扩展名"
[HKEY_CLASSES_ROOT*shellDisplayFileExtCommand]
@="WScript.exe C:WindowsSuperHidden.vbs"
[HKEY_CLASSES_ROOTDirectoryBackgroundshellDisplayFileExt]
@="显示/隐藏 文件扩展名"
[HKEY_CLASSES_ROOTDirectoryBackgroundshellDisplayFileExtCommand]
@="WScript.exe C:WindowsSuperHidden.vbs"
[HKEY_CLASSES_ROOTFoldershellDisplayFileExt]
@="显示/隐藏 文件扩展名"
[HKEY_CLASSES_ROOTFoldershellDisplayFileExtCommand]
@="WScript.exe C:WindowsSuperHidden.vbs"
[HKEY_LOCAL_MACHINESOFTWAREClasses*shellDisplayFileExt]
@="显示/隐藏 文件扩展名"
[HKEY_LOCAL_MACHINESOFTWAREClasses*shellDisplayFileExtCommand]
@="WScript.exe C:WindowsSuperHidden.vbs"
[HKEY_LOCAL_MACHINESOFTWAREClassesDirectoryBackgroundshellDisplayFileExt]
@="显示/隐藏 文件扩展名"
[HKEY_LOCAL_MACHINESOFTWAREClassesDirectoryBackgroundshellDisplayFileExtCommand]
@="WScript.exe C:WindowsSuperHidden.vbs"
[HKEY_LOCAL_MACHINESOFTWAREClassesFoldershellDisplayFileExt]
@="显示/隐藏 文件扩展名"
[HKEY_LOCAL_MACHINESOFTWAREClassesFoldershellDisplayFileExtCommand]
@="WScript.exe C:WindowsSuperHidden.vbs" 

发表评论

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