1

I am trying to get a hotkey to toggle hidden files. I got this one but when I hit super + h it does nothing. I am running Windows 7 64-Bit.

;Show hidden folders and files in Windows XP
#h::
RegRead, ShowHidden_Status, HKEY_CURRENT_USER, Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced, Hidden
f ShowHidden_Status = 2 
RegWrite, REG_DWORD, HKEY_CURRENT_USER, Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced, Hidden, 1
Else
RegWrite, REG_DWORD, HKEY_CURRENT_USER, Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced, Hidden, 2
WinGetClass, CabinetWClass
PostMessage, 0x111, 28931,,, A
Return

1 Answer 1

2

I learned recently from this StackOverflow answer that when changing registry keys for Windows Explorer settings, the results only show when Explorer restarts.

This means that you either need to log out and back in, or kill the Explorer process, which would then automatically restart itself. Any open Explorer windows would disappear, though.

Although I'm not able to test it at the moment this thread Kill explorer from script looks like it shows how to do it:

process, close, explorer.exe

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.