• 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 » Show Hide file extension toggle option in Windows 7 context menu

By Abhishek Ghosh May 25, 2011 9:42 pm Updated on May 25, 2011

Show Hide file extension toggle option in Windows 7 context menu

Advertisement

Previously, a long time back; we wrote how you can manually show / hide file extension in Windows 7.  This time we, will proceed further; we will add a toggle Show Hide file extension with a custom icon in Windows 7 right click context menu.

It will look like this:

 

Show Hide file extention toggle option in Windows 7 context menu

 

Adding a Show Hide file extension in right click context menu is not much complicated than our few tutorials; still try to understand the things.

Advertisement

---

 

We are giving the example of the above screenshot like menu.

 

Creating the vbs file to to get the Show Hide file extension

 

One vbs file is needed.

Open Notepad. Write the following things:

 

FileExtension = “HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvancedHideFileExt”
Set Command1 = WScript.CreateObject(“WScript.Shell”)
Set command2 = CreateObject(“Wscript.Shell”)
Check = Command1.RegRead(FileExtension)
If Check = 1 Then
Command1.RegWrite FileExtension, 0, “REG_DWORD”
Else
Command1.RegWrite FileExtension, 1, “REG_DWORD”
End If
Command1.SendKeys “{F5}”

 

Save the file as togglekey.vbs and do not forget to change the file type from text to All files from drop down menu in Notepad before saving it. Test it by double clicking it.

You can name it as you like; but you have to mention it later. Place it in your C partition (or where your Windows 7 is installed; if your Windows is not installed in C partition, change the drive letter to that in next step too).

 

Creating the registry file for getting Show Hide file extension in right click menu

 

This will add the functionality to get working from right click context menu. Open Notepad, copy paste the following and modify as per your need:

 

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOTLibraryFolderbackgroundshellToggle File Extensions]
“Icon”=”C:WindowsSystem32xpsrchvw.exe”
“Position”=”Bottom”

[HKEY_CLASSES_ROOTLibraryFolderbackgroundshellToggle File Extensionscommand]
@=”Wscript.exe “C:togglekey.vbs“”

[HKEY_CLASSES_ROOTDirectoryBackgroundshellToggle File Extensions]
“Icon”=”C:WindowsSystem32xpsrchvw.exe”
“Position”=”Bottom”

[HKEY_CLASSES_ROOTDirectoryBackgroundshellToggle File Extensionscommand]
@=”Wscript.exe “C:togglekey.vbs“”

 

 

The orange text is the name that you want to see in the right click context menu.

Blue text is the path of any system icon. You can use your custom one or delete the lines if you do not need any icon.

The red text in the “Position”=”Bottom” defines where it will appear in the context menu, you can use Top,Middle instead of Bottom to show in different position as per your wish.

The green text is the path of the vbs file.

 

 

Save the file as Show Hide file extension.reg and do not forget to change the file type from text to All files from drop down menu in Notepad before saving it. Name does not matter here at all. You can save as you like.

Now, double click the reg file and accept the security warnings and you will see the option named Toggle file extensions in right click context menu when clicked on a folder or any empty place inside folder or Windows 7 desktop.

 

You will get it as you want.

 

Removal of Show Hide file extension:

Add a minus sign before the H starts after the third bracket; like [-HKEY_CLASSES…. to all where there is HKEY and save it (with some good name) as reg file and run it. It will break the association; so the option will disappear from right click context menu.

Obviously, you might delete the bat files manually too.

 

Downloads:

As usually all the required files are here for your download.

The rar file is password protected, type thecustomizewindows.com as the password.

 

Signature Tagged With toggle file exteensions on or off for windows 7 , file extension windows 7 , windows 7 toggle file extension , toggle file extensions on and off , toggle file extension , show file extension in windows 7 , Show / hide file extension , how to toggle option to show file extention , how to toggle file extension Windows 7 , hide fccontextmenu64

This Article Has Been Shared 531 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 Show Hide file extension toggle option in Windows 7 context menu

  • 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.

  • 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 clock in right click context menu without any software

    After reading this tutorial, you will get an option in the right click context menu, click which your computer will speak the current time by your clock.

  • Talking Calculator in right click context menu without any software

    Talking Calculator in right click context menu without any software for your Windows 7 or any version of Windows PC.

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. AvatarRoberto says

    May 26, 2011 at 12:43 am

    It could make a tutorial explaining how to put a separation in the context menu, which is identical to the separation on the New menu, the intention is to let you organized
    Thanks in advance

  2. AbhishekAbhishek says

    May 26, 2011 at 8:15 am

    No Roberto, adding a real separator in main context menu is very difficult. We need to register the main menu we want as an system application / program. There is only one application that can add separator to main right click context. That costs $ 150. I forgot the name. I appreciate your nice idea.

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, "Show Hide file extension toggle option in Windows 7 context menu," in The Customize Windows, May 25, 2011, February 6, 2023, https://thecustomizewindows.com/2011/05/show-hide-file-extention-toggle-option-in-windows-7-context-menu/.

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