• 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 704 Times!

Facebook Twitter Pinterest
Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Orthopaedic 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

You can subscribe to our Free Once a Day, Regular Newsletter by clicking the subscribe button below.

Click To Subscribe

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 (21K Followers)
  • Twitter (5.3k 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

  • Best Powerpoint Templates for Communicating IoT Concepts April 17, 2021
  • How to Build a DIY Water Level Indicator? April 16, 2021
  • How Startups Can Convince the Investors April 14, 2021
  • What to Know About the Cloud Storage Services for Smartphones April 13, 2021
  • WonderFox HD Video Converter Factory Pro Review April 10, 2021

 

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, April 19, 2021, https://thecustomizewindows.com/2011/05/show-hide-file-extention-toggle-option-in-windows-7-context-menu/.

Source:The Customize Windows, JiMA.in

 

This website uses cookies. If you do not want to allow us to use cookies and/or non-personalized Ads, kindly clear browser cookies after closing this webpage.

Read Cookie Policy.

PC users can consult Corrine Chorney for Security.

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

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

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