After reading this tutorial, you can get an option to show or hide hidden files in right click context menu in Windows 7.
You have to create one vbs file and one registry file in order to get the option in right click menu.
we have written in detail plus added the needed files as free downloads so that you can easily do the trick.
Open Notepad. Write the following code there:
Hidden = “HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Hidden”
SHidden = “HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\ShowSuperHidden”
Set Sh = WScript.CreateObject(“WScript.Shell”)
St = Sh.RegRead(Hidden)
If St = 2 Then
Sh.RegWrite Hidden, 1, “REG_DWORD”
Sh.RegWrite SHidden, 1, “REG_DWORD”
Else
Sh.RegWrite Hidden, 2, “REG_DWORD”
Sh.RegWrite SHidden, 0, “REG_DWORD”
End If
Sh.SendKeys(“{F5}”)
We are showing you the screenshot:
Save it using “Save As…” as Show_Hidden_Files_Switch.vbs (or just save the New Text Document.txt, when saved just re-name it, including extension); do not forget to change the file type to all files from text file. Place it in your C: >Windows Folder:
Again, open the Notepad. Write the code as written bellow (again, look the screenshot below):
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\Show / Hide Hidden Files]
@=”Show / Hide Hidden Files”
“HasLUAShield”=”"[HKEY_CLASSES_ROOT\Directory\Background\shell\Show / Hide Hidden Files\command]
@=”cmd.exe /c start C:\\Windows\\Show_Hidden_Files_Switch.vbs”
Save it using “Save As…” as Show_Hidden_Files_Switch.reg (or just save the New Text Document.txt, when saved just re-name it, including extension); do not forget to change the file type to all files from text file:
Double click the reg file and accept the security prompt. Right click anywhere within Explorer or desktop, you will get the Show Hide hidden files option in right click context menu:
All the files: Show_Hidden_Files_Switch.vbs , Show_Hidden_Files_Switch.reg and another reg file that will allow you to remove the show hide context menu option is included in this rar file. Just click here to download.
Many thanks to our regular reader Mr. Junaid Muhamed Baramy for taking his time to correct the previous code.

Incoming search terms:
toggle hidden files,toggle hidden files gadget,hidden files toggle windows 7,windows 7 toggle hidden files,hidden file toggle,windows 7 desktop hidden files,toggle hidden files windows 7,togglehiddenfiles vbs,toggle hidden file,hide show / hidden menu on windows 7 using regedit,togglehiddenfiles,hidden files toggle,Hidden Files Gadget,hidden file toggle window 7,toggle hidden files gadget windows 7,toggle between show hidden files cmd,adding show or hide option in context menu,toggle hidden folders windows-7,toggle hidden files gadgets for windows 7,toggle hidden files windowsVisitors Read This Post Also Read:
- Encrypt Decrypt any file or folder from right click context menu in Windows 7 Important: This procedure is only valid for the Professional...
- Add Services to the right click context menu in Windows 7 In Microsoft Windows 7,it is possible to access services...
- Right-click: the hidden options menu in Windows 7 As for Microsoft Vista, hidden right-click options menu context are...
- Create a show desktop icon anywhere in Windows 7 If you follow this tutorial, you will be able to...
- Edit the hosts file in Windows 7 One of the functions of the Hosts file is to...
- Pin any folder to the Start menu in Windows 7 This tutorial is helpful for those who want to use...
- Solution for Windows 7 is not allowing access to owner’s own file Many of you have faced the problem of accessing the...
- Playing Media files and customizing Windows Media Player 12 You can access Windows Media Player 12 (WMP) in Windows...
- How to Add Active User’s Name in Windows 7 Desktop Context Menu You will end up with something like this one: 1....
- Organizing your Media Files in Windows 7 It is of utmost importance to organize the media files...
- Hide User Accounts from the Welcome Screen in Windows 7 This is small easy tutorial to show how to Hide...
- How to remove the scroll bar on the Start Menu Programs We would install many programs in Windows 7, for which...
- Keyboard shortcuts in MS Paint Previously we have published numerous keyboard shortcuts for Microsoft Windows...
- How to export the entire address book in Windows live mail In Windows 7, Windows Live Mail allows export of the...
- Enable showing file extension in Windows 7 By default, you can not see the extension of the...








Hi,
Thank you for the tutorials. Had been searching for this every where. Nice work.
FYI: u missed a – @=”Show / Hide Hidden Files” in reg file.
ie:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\Show / Hide Hidden Files]
@=”Show / Hide Hidden Files”
“HasLUAShield”=”"
[HKEY_CLASSES_ROOT\Directory\Background\shell\Show / Hide Hidden Files\command]
@=”cmd.exe /c start C:\\Windows\\Show_Hidden_Files_Switch.vbs”
Thank you very much Juniad; it has been corrected now.
Thanks for the appreciation too.
thank you?I LIKE IT VERY MUSH
It works.
hmm… it seems to work to the point of adding the “toggle” to the context menu. But when I click it… the command prompt comes up for a split second–vanishes–and then my browser window (chrome) gets refreshed…?? Not sure whats going on here… maybe I need another cup of coffee. Any suggestions?
Note: I’m lazy so I just downloaded the zip files and placed both the .reg and the .vbs file in my windows folder. …and yes… I am logged on as an administrator.
Its working as usually. I have downloaded and checked again right now.
That CMD black window will come, that is normal in the way the script is written.
( If you look at our other right click tutorials, in some cases we have made
in tosome other vbs files to run ‘outside of the users’ view’.)If you are expecting some pop up will come and tell you “Hidden files enabled” or “Hidden Files is Visible” : that will not happen. It is just a script not a program.
You can double click the vbs file to test, that will work itself as a “switch”. Adding to right click menu is basically not the important part, that vbs is the main part to act as a switch, which otherwise you have access through the menus.
Kindly check inside any folder where there are hidden files, you will see it is working.
Regarding Chrome : Toggling between hiding and not hiding the hidden files (there are system files too) can change the behavior of any running program.
it does not refresh, i need to refresh by myself
Win 7
This is a very useful tweak, thanks a lot.
Is there any possibility of having the icon change so that it is immediately obvious whether hidden files are being shown or not?
You are saying something like “active” and “inactive” icons or tick mark and wrong mark ? Something like that?
I’m getting an error invalid character error for my .vbs file i copied and pasted it twice and its right. says error occurs at “line 1″ “Character 10″. not sure how the ” mark is invalid but thats what its telling me.
could you please make the cmd window launch silently so that we dont see it when unhiding hidden files? it would be much appreciated my friend , take care
For silent execution of Regedit, use the /s parameter. s for ‘silent’.
how would i do that? btw its not regedit its a command line window that gets launched when you select hide/unhide in the right click menu
or if it wouldnt be too much trouble could you update the rar and add the code so that we wont see the cmd window when we hide or unhide files? itd me very much appreciated ,thank you
please upload another version with silent cmd execution integrated , thanks
Worked great, exactly what I was looking for. Thanks a lot!
You are welcome Jarret.