• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here: Home » How to add toggle hidden files to context menu in Windows 7

By Abhishek Ghosh January 18, 2011 9:27 am Updated on October 22, 2014

How to add toggle hidden files to context menu in Windows 7

Advertisement

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:

Advertisement

---

C:/Windows
Vim
1
2
3
4
5
6
7
8
9
10
11
12
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:

How to add toggle hidden files to context menu in Windows 7

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: How to add toggle hidden files to context menu in Windows 7-1 How to add toggle hidden files to context menu in Windows 7-2 Again, open the Notepad. Write the code as written bellow (again, look the screenshot below):

 

C:/Windows
Vim
1
2
3
4
5
6
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"

 

It should look like this: How to add toggle hidden files to context menu in Windows 7-3

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:

How to add toggle hidden files to context menu in Windows 7-4 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: How to add toggle hidden files to context menu in Windows 7-5 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.

Tagged With убрать из реестра ключ toggle show or hide hidden files , show hidden folders in right click menu , show hidden files toggle , Shortcut to show hidden files in context menu , https://yandex ru/clck/jsredir?from=yandex ru;search;web;;&text=&etext=1833 OgLGg1-JQwABB9FP9-VisIK5LcMfwuNvozIYGPyOb-XiNh-sO3ZvFZDl8fk8FS9j 6475aa0282b05ed3d18c0d9c7bf53c6be94db0c8&uuid=&state=_BLhILn4SxNIvvL0W45KSic66uCIg23qh8iRG98qeIXme , https://yandex ru/clck/jsredir?from=yandex ru;search;web;;&text=&etext=1829 _S-sqgrdvbbqKl_aQqXtVpyNwj8SCMrfVg7tqbcsPC9pGpoqtq6MS8tlPH0d5UUp afe6cd4edf52c2b2d79d0e1870800f49a4b33e5a&uuid=&state=_BLhILn4SxNIvvL0W45KSic66uCIg23qh8iRG98qeIXme , https://yandex ru/clck/jsredir?from=yandex ru;search;web;;&text=&etext=1828 JM2nZeriyLRRF-xenoAAJefucE0savmVSwiUVJrFFpxmuDwjtEiMMgdkAsXDGqNN b1c36c795cbf88d20b31968f399e69ff9a823281&uuid=&state=_BLhILn4SxNIvvL0W45KSic66uCIg23qh8iRG98qeIXme , hidden file toggle portable , context menu with show hidden files , Add Show/Hide hidden files/folders in context menu

This Article Has Been Shared 174 Times!

Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to How to add toggle hidden files to context menu in Windows 7

  • Cascading list of websites in right click context menu in Windows 7

    After reading this tutorial, you will be able to add a right click custom named menu and cascading list of submenu of websites of your choice with icons of your choice in Windows 7.

  • Cascading list of programs in right click context menu in Windows 7

    After reading this tutorial, you will be able to add a right click custom named menu and cascading list of submenu of third party or default programs with icons of your choice in Windows 7.

  • Cascading list of folders in right click context menu in Windows 7

    After reading this tutorial, you will be able to add a right click custom named menu and cascading list of submenu of folders of your choice with custom icons in Windows 7.

  • Eject CD DVD from right click context menu in Windows 7

    Eject CD DVD CD DVD or blue ray disk from right click context menu or just by a shortcut in Windows 7. No software installation is required.

  • Talking Program Opener with Input Window in Right Click Context Menu

    Talking Program Opener with Input Window in Right Click Context Menu tutorial will show how you can create a interactive talking program opener to open any file with specific program in Windows 7.

Additionally, performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Comments

  1. AvatarJunaid Muhamed Baramy says

    May 10, 2011 at 12:11 pm

    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_ROOTDirectoryBackgroundshellShow / Hide Hidden Files]
    @=”Show / Hide Hidden Files”
    “HasLUAShield”=””

    [HKEY_CLASSES_ROOTDirectoryBackgroundshellShow / Hide Hidden Filescommand]
    @=”cmd.exe /c start C:\Windows\Show_Hidden_Files_Switch.vbs”

  2. AbhishekAbhishek says

    May 10, 2011 at 1:01 pm

    Thank you very much Juniad; it has been corrected now.

    Thanks for the appreciation too.

  3. Avatarmaodunjt says

    June 21, 2011 at 12:06 am

    thank you?I LIKE IT VERY MUSH

  4. AvatarJobin T Philip says

    August 6, 2011 at 10:34 am

    It works.

  5. AvatarAdam says

    September 13, 2011 at 3:28 pm

    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.

  6. AbhishekAbhishek says

    September 13, 2011 at 4:17 pm

    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 to some 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.

  7. AvatarAuguster says

    October 18, 2011 at 1:57 pm

    it does not refresh, i need to refresh by myself
    Win 7

  8. AvatarJames M says

    October 21, 2011 at 12:09 pm

    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?

  9. AbhishekAbhishek says

    October 21, 2011 at 12:21 pm

    You are saying something like “active” and “inactive” icons or tick mark and wrong mark ? Something like that?

  10. AvatarBruce says

    November 17, 2011 at 3:10 am

    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.

  11. Avatarok itsa me mario...xD says

    November 24, 2011 at 4:42 pm

    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

  12. AbhishekAbhishek says

    November 24, 2011 at 4:44 pm

    For silent execution of Regedit, use the /s parameter. s for ‘silent’.

  13. Avatarok itsa me mario...xD says

    November 25, 2011 at 4:30 am

    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

  14. Avatarok itsa me mario...xD says

    January 5, 2012 at 4:48 pm

    please upload another version with silent cmd execution integrated , thanks

  15. AvatarJarett says

    March 6, 2012 at 6:24 pm

    Worked great, exactly what I was looking for. Thanks a lot!

  16. AbhishekAbhishek says

    March 6, 2012 at 9:50 pm

    You are welcome Jarret.

  17. AvatarBB says

    September 15, 2012 at 2:22 am

    Nice tip! Thank you so much, although I have to refresh (F5) every time to see the changes.

  18. AvatarBB says

    September 18, 2012 at 1:10 pm

    Problem solved after restart, works great!

  19. AbhishekAbhishek says

    September 18, 2012 at 10:44 pm

    Thats Great !

  20. AvatarMelchior blausand (@blausand) says

    February 6, 2013 at 9:00 am

    Thank you! I’d love to have this as a toolbar button.
    Has any reader an idea of how to register a button in Windows7? It was quite easy under XP.
    Maybe you should get in contact with shell extensions website people?

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • What is Configuration Management February 5, 2023
  • What is ChatGPT? February 3, 2023
  • Zebronics Pixaplay 16 : Entry Level Movie Projector Review February 2, 2023
  • What is Voice User Interface (VUI) January 31, 2023
  • Proxy Server: Design Pattern in Programming January 30, 2023

About This Article

Cite this article as: Abhishek Ghosh, "How to add toggle hidden files to context menu in Windows 7," in The Customize Windows, January 18, 2011, February 6, 2023, https://thecustomizewindows.com/2011/01/how-to-add-toggle-hidden-files-to-context-menu-in-windows-7/.

Source:The Customize Windows, JiMA.in

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT