Explorer button to toggle "Show hidden files"?

I

Iceman

I'd really like to be able to hide files to clean up some of my folders.
Unfortunately, there are often times that I need to see hidden files, so I
always have "Show hidden files and folders" enabled.

Dos anyone know of a simple added that would give me a button on my Windows
explorer toolbar to toggle this setting quickly?

You can't add that to the Explorer toolbar, but you can create a script
that will do what you want.

In this case, the registry key is:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced
Value: Hidden.
Data: 1 means "Show hidden files and folders"
Data: 2 means "Don't show hidden files and folders"

----Start of code----
On Error Resume Next
Set WSHShell=Wscript.CreateObject("Wscript.Shell")

X =
WshShell.RegRead("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Hidden")

If X = "1" Then
WshShell.RegWrite
"HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Hidden",
"2", "REG_DWORD"
Elseif X = "2" Then
WshShell.RegWrite
"HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Hidden",
"1", "REG_DWORD"
End If

Set WshShell = Nothing

-------End of code-----

<Quote>
Watch the line wraps.

Copy and paste the above code into a Notepad file and save it with a VBS
(*.vbs) extension. Next create a shortcut on your Desktop or Start Menu to
the VBS file you just created. Then right-click the shortcut, select
Properties and assign the F12 key as the hotkey. Note: The shortcut
generally must be on your Start Menu or Desktop for a hot key to work.
 
N

Noozer

I'd really like to be able to hide files to clean up some of my folders.
Unfortunately, there are often times that I need to see hidden files, so I
always have "Show hidden files and folders" enabled.

Dos anyone know of a simple added that would give me a button on my Windows
explorer toolbar to toggle this setting quickly?
 
P

Pennywise

|>I'd really like to be able to hide files to clean up some of my folders.
|>Unfortunately, there are often times that I need to see hidden files, so I
|>always have "Show hidden files and folders" enabled.
|>
|>Dos anyone know of a simple added that would give me a button on my Windows
|>explorer toolbar to toggle this setting quickly?
|>

you can do this with http://powerpro.webeddie.com/

Do you know how to use the ALT keys to get around in a menu? you can
use a macro program to do the same thing.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top