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

Depending on available (Or case) sometimes prefer endings / Windows file extensions 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 option Show / Hide 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"
else
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).

hide

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

new-key

  • 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 in the coming Default value - 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)

command-value

  • close regedit

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

context-menu

Note: Before making any changes to the system registry, you should make a backup of these (in regedit, click on File in the upper left corner and select Export) to avoid potential problems.

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

About the author

Stealth

Passionate about everything that means gadgets and IT, I write with pleasure stealthsettings.com from 2006 and I like to discover with you new things about computers and operating systems macOS, Linux, Windows, iOS and Android.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment is processed.