Add an item to the context menu that allows you to show or hide hidden files. The menu should be called with Shift pressed, from an empty space in the folder.
1 2 3 4 5 6 7 8 9 |
Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\Directory\Background\shell\HiddenFiles] "MUIVerb"="Hidden files (show/hide)" "Icon"="shell32.dll,-151" "Extended"="" [HKEY_CLASSES_ROOT\Directory\Background\shell\HiddenFiles\command] @="cmd.exe /q /c color 07 & powershell.exe -windowstyle hidden -noprofile \"$strKey = 'HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced';$strHiddenKey = $strKey + '\\Hidden';$strSuperHiddenKey = $strKey + '\\ShowSuperHidden';$WshShell = new-object -com wscript.shell;$dblHiddenData = $WshShell.RegRead($strHiddenKey);If ($dblHiddenData -eq 2) {$WshShell.RegWrite($strHiddenKey, 1, 'REG_DWORD');$WshShell.RegWrite($strSuperHiddenKey, 1, 'REG_DWORD')} else {$WshShell.RegWrite($strHiddenKey, 2, 'REG_DWORD');$WshShell.RegWrite($strSuperHiddenKey, 0, 'REG_DWORD')};(New-Object -comObject Shell.Application).Windows() | foreach-object {$_.Refresh()}\"" |