Shortcut to show/hide Hidden Files ~ TYroTecHs
TYroTecHs: Shortcut to show/hide Hidden Files
Search Box:   

Shortcut to show/hide Hidden Files

| Friday, July 25, 2008 |

Here is a cool way to get a shortcut to show the hidden files and folder.I read it at and found it quite interesting.I hope you will like this post as well and will show your appreciation in the form of comments.

Here’s how you do it:
1. Open up Notepad and paste in the following text:

Set sh = CreateObject("WScript.Shell")

theKey = "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Hidden"

setHidden = sh.RegRead(theKey)

If setHidden = 1 Then

setHidden = 0

MsgBox "System and hidden files will no longer appear in Explorer.",64,"Hidden File Exchange"


setHidden = 1

MsgBox "System and hidden files will appear in Explorer.",64,"Hidden File Exchange"

End If

sh.RegWrite theKey,setHidden,"REG_DWORD"

Set sh = Nothing
2. Save the file with any name you want, but make sure to designate the extension to be “.vbs”:
3. Run the file that you just saved. Give it a few seconds to take affect, but you should see the results without even having to restart Windows Explorer.
4. If you want you can place this script file anywhere you’d like on your computer, and then you can create a shortcut to it by right-clicking on the file. I recommend placing a shortcut to the file in the Windows Explorer Favorites for fast access from the Favorites menu.

Compatibility: I’ve verified that this works on Windows XP, but it only works on Vista when User Account Control (UAC) is disabled. This is because it needs access to the registry, and Vista doesn’t allow that unless it is run as an administrator. Since it is a VBS file the “Run as Administrator” option does not appear when right-clicking on the file.
By default the script will prompt you with the current setting for the hidden files each time you run the script. That way you know whether you are turning them on or off. If you don’t want to see the prompts just remove the following two lines that I’ve highlighted in the code:

Get upto $6.00 on Surveys! Join them here.

Related Posts


Post a Comment