I have a lot of files and folders, and they are organized well, but some folders and files I rarely access because they are dated. I don't want to move the old files, but keeping them mixed with the new files makes for clutter. So I thought, how about having all the old files hidden? That way I can still have them organized where they are, but not cause clutter with my present files.
So I'd like a keyboard shortcut, or a windows explorer button to toggle the showing of hidden files.
I'm still using Windows XP. If you want to make it for a newer system, I'm sure someone will find it useful.
I sort of have this figured out. I created a shortcut to a batch file, and placed the shortcut in "Links". Then I turned on the "Links" toolbar in Windows Explorer. Here's the batch file:
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 Hidden /t REG_DWORD /d 2 /ff
There is still a nuisance though. The setting updates, but explorer does not refresh. And it needs to be a particular kind of refresh. F5 doesn't work. What reliably works, is the refresh in the context-menu of the blank-space of the file-list. How to get that to happen via a batch file is beyond me.