You can use a simple vbs script that will toggle between showing & hiding your hidden files and folders.
I've tested this method on Windows 7 32-bit only.
' Script to toggle Windows Explorer display of hidden files,
' super-hidden files, and file name extensions
Option Explicit
Dim dblHiddenData, strHiddenKey, strSuperHiddenKey, strFileExtKey
Dim strKey, WshShell
On Error Resume Next
strKey = "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced"
strHiddenKey = strKey & "\Hidden"
strSuperHiddenKey = strKey & "\ShowSuperHidden"
strFileExtKey = strKey & "\HideFileExt"
Set WshShell = WScript.CreateObject("WScript.Shell")
dblHiddenData = WshShell.RegRead(strHiddenKey)
If dblHiddenData = 2 Then
WshShell.RegWrite strHiddenKey, 1, "REG_DWORD"
WshShell.RegWrite strSuperHiddenKey, 1, "REG_DWORD"
WshShell.RegWrite strFileExtKey, 0, "REG_DWORD"
Else
WshShell.RegWrite strHiddenKey, 2, "REG_DWORD"
WshShell.RegWrite strSuperHiddenKey, 0, "REG_DWORD"
WshShell.RegWrite strFileExtKey, 1, "REG_DWORD"
End If
Edit:
I've converted the script above to a batch file that will toggle between showing and hiding hiddenfiles & file extentions in win 7. See below.
@ECHO OFF
set regpath=HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced
set regvalue=Hidden
set regdata=2
reg query "%regpath%" /v "%regvalue%" | find /i "%regdata%"
IF errorlevel 1 goto :hide
Reg add "%regpath%" /v Hidden /t REG_DWORD /d 1 /f
Reg add "%regpath%" /v HideFileExt /t REG_DWORD /d 0 /f
Reg add "%regpath%" /v ShowSuperHidden /t REG_DWORD /d 1 /f
goto :end
:hide
Reg add "%regpath%" /v Hidden /t REG_DWORD /d 2 /f
Reg add "%regpath%" /v HideFileExt /t REG_DWORD /d 1 /f
Reg add "%regpath%" /v ShowSuperHidden /t REG_DWORD /d 0 /f
:end
Still working great - however, Windows 10 already uses win+h (for the IMHO useless "Share charm"), so you have to adapt the script to use e.g. win+g instead. I also had to comment out the
– Tobias Kienzler – 2016-02-17T08:00:47.217If (eh_Class = "#32770" OR A_OSVersion = "WIN_VISTA")
part to make sureF5
is always sent to explorer (or whatever window is currently active, but when do you use this except in explorer windows?)Ah, that's perfect! Exactly what I wanted. Thank you! :D – Sasha Chedygov – 2010-09-06T06:29:15.633