Add Show / Hide File extension the Context Menu [Windows type]

Depending on available (Or case) sometimes prefer file terminations / extensions Windows be hidden or, on the contrary, displayed. But the process of Hide / show endings, Although simple, is not very fast, and sometimes it can be quite irritating. It would be much easier to add Show / Hide option File Extension in context MenuSo we are much easier to find / modify / hide (etc) file endings the computer? If you like the idea, then we recommend you follow these instructions.

How can we add Show / Hide file extension in Context Menu?

1. To make it possible to add this option in Context Menu must first create a script to execute action itself display / hide the endings:

  • open a NotepadThen give Copy / Paste the following code in it:

FileExt = “HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvancedHideFileExt "
Set Sh = WScript.CreateObject ("WScript.Shell")
St = Sh.RegRead (FileExt)
Then if St = 1
Sh.RegWrite FileExt, 0, “REG_DWORD”
Sh.RegWrite FileExt, 1, “REG_DWORD”
End If
Sh.SendKeys ("F5 {}")

  • save the file in C: (Recommended) - or any other folder you want - and change her name to "Show_File_Extension_On_Off.vbs " (Including the quotes!)

This script will check the status option Hide extensions of known file types the Folder Options and will reverse its values ​​(ie, if it is set to hide file endings, the script will change its status to display endings and vice versa).


2. To add option Show / Hide File Extension in context Menu do the following:

  • open Registry Editor (type: regedit in Searchacquis in Start Menu and give Enter) And navigate to the path HKEY_CLASSES_ROOTDirectoryBackgroundshell
  • in the left pane, under shell, Create a new key you called Show / Hide file extensionAnd under this key in the right pane, create entry (String Value) HasLUAShield which does not give any value
show-hide-key new-string value
  • back left pane, under the key Show / Hide file extension Create New Key command


  • then in the right pane (under command key) change input value Default in cmd.exe / c start C: \ Show_File_Extension_On_Off.vbs (if you saved the script “Show_File_Extension_On_Off.vbs ”in a folder other than C :, change this to the input value Default - for example, if I saved the script in C: Users [user-name]The value will be changed cmd.exe / c start C: Users [user-name] \ Show_File_Extension_On_Off.vbs, where [User-name] is your username)


  • close regedit

After these changes you will notice that in context Menu (Right-click on any free portion on Desktop) Appeared and option Show / Hide file extension (Because endings appear / disappear, click on this option and then F5 press to refresh).


Note: Before making any changes to the system registries, it is recommended to make a backup of them (in regedit, click on File in the upper left corner and select Export) to avoid possible problems.

Add Show / Hide File extension the Context Menu [Windows type]

About the author


Passionate about everything that means gadget and IT, I am pleased to write on from 2006 and I love to discover new things about computers and macOS, Linux operating systems, Windows, iOS and Android.

Leave a Comment