一、新建一个TXT文本文档,将以下内容复制进去,保存为SuperHidden.vbs,放入C:\Windows目录下
Dim WSHShell
Set WSHShell = WScript.CreateObject("WScript.Shell")
sTitle1 = "SSH=0"
sTitle2 = "SSH=1"
if WshSHell.RegRead("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\HideFileExt") = 0 then
WshSHell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\HideFileExt", "1", "REG_DWORD"
Set WSHShell = WScript.CreateObject("WScript.Shell")
sTitle1 = "SSH=0"
sTitle2 = "SSH=1"
if WshSHell.RegRead("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\HideFileExt") = 0 then
WshSHell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\HideFileExt", "1", "REG_DWORD"
WshSHell.SendKeys "{F5}+{F10}e"
else
WshSHell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\HideFileExt", "0", "REG_DWORD"
WshSHell.SendKeys "{F5}+{F10}e"
end if
Set WSHShell = Nothing
WScript.Quit(0)
怎么显示文件的扩展名二、再将以下内容复制到TXT,保存为文件,运行即可
else
WshSHell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\HideFileExt", "0", "REG_DWORD"
WshSHell.SendKeys "{F5}+{F10}e"
end if
Set WSHShell = Nothing
WScript.Quit(0)
怎么显示文件的扩展名二、再将以下内容复制到TXT,保存为文件,运行即可
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\DisplayFileExt]
[HKEY_CLASSES_ROOT\*\shell\DisplayFileExt]
@="显示/隐藏 文件扩展名"
[HKEY_CLASSES_ROOT\*\shell\DisplayFileExt\Command]
@=" C:\\Windows\\SuperHidden.vbs"
[HKEY_CLASSES_ROOT\Directory\Background\shell\DisplayFileExt]
@="显示/隐藏 文件扩展名"
[HKEY_CLASSES_ROOT\Directory\Background\shell\DisplayFileExt\Command]
@=" C:\\Windows\\SuperHidden.vbs"
[HKEY_CLASSES_ROOT\Folder\shell\DisplayFileExt]
@="显示/隐藏 文件扩展名"
[HKEY_CLASSES_ROOT\Folder\shell\DisplayFileExt\Command]
@=" C:\\Windows\\SuperHidden.vbs"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shell\DisplayFileExt]
@="显示/隐藏 文件扩展名"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shell\DisplayFileExt\Command]
@=" C:\\Windows\\SuperHidden.vbs"
[HKEY_CLASSES_ROOT\*\shell\DisplayFileExt\Command]
@=" C:\\Windows\\SuperHidden.vbs"
[HKEY_CLASSES_ROOT\Directory\Background\shell\DisplayFileExt]
@="显示/隐藏 文件扩展名"
[HKEY_CLASSES_ROOT\Directory\Background\shell\DisplayFileExt\Command]
@=" C:\\Windows\\SuperHidden.vbs"
[HKEY_CLASSES_ROOT\Folder\shell\DisplayFileExt]
@="显示/隐藏 文件扩展名"
[HKEY_CLASSES_ROOT\Folder\shell\DisplayFileExt\Command]
@=" C:\\Windows\\SuperHidden.vbs"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shell\DisplayFileExt]
@="显示/隐藏 文件扩展名"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shell\DisplayFileExt\Command]
@=" C:\\Windows\\SuperHidden.vbs"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\Background\shell\DisplayFileExt]
@="显示/隐藏 文件扩展名"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\Background\shell\DisplayFileExt\Command]
@=" C:\\Windows\\SuperHidden.vbs"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\DisplayFileExt]
@="显示/隐藏 文件扩展名"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\DisplayFileExt\Command]
@=" C:\\Windows\\SuperHidden.vbs"
@="显示/隐藏 文件扩展名"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\Background\shell\DisplayFileExt\Command]
@=" C:\\Windows\\SuperHidden.vbs"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\DisplayFileExt]
@="显示/隐藏 文件扩展名"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\DisplayFileExt\Command]
@=" C:\\Windows\\SuperHidden.vbs"
发布评论