In function of the disposition (or case) sometimes we prefer as Windows file ends/extensions be hidden or, on the contrary, displayed. But the process of Hiding/displaying endings, although it is simple, it is not very fast, and sometimes it can be quite irritating. It would not be much easier to add Show/Hide File Extension option in Context Menu, so that it is much easier for us to Find/modify/hide (etc.) File endings from the computer? If the idea sirates, then we recommend that you follow the following instructions.
Cum putem adauga Show/Hide file extension in Context Menu?
1. To make it possible to add this option in context Menu we must first create an script to execute the actual action to display/hide the endings:
- Open one Notepad, then give Copy/Paste to the following code in it:
FileExt = "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvancedHideFileExt"
Set Sh = WScript.CreateObject("WScript.Shell")
St = Sh.RegRead(FileExt)
If St = 1 Then
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 its name in “Show_File_Extension_On_Off.vbs” (including quotes!)
This script will check the status of the option Hide extensions of known file types from Folder Options and will reverse its values (ie, if it is set to hide the files of the files, the script will change its status to display the terminations and vice versa).

2. To add the option Show/Hide File Extension in Context Menu Follow the steps:
- open the register editor (taste regedit in Searchthe from Start Menu And give Enter) and navigate to the way HKEY_CLASSES_ROOTDirectoryBackgroundshell
- in the left panel, below shell, created a new key you are called Show/Hide file extension, and under this key, in the right panel, create the entrance (string value) HasLUAShield to which you give no value


- back in the left panel, under the key Show/Hide file extension Created New Key command

- Then in the right panel (below command Key) Change the value of the entrance 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 value of the default entrance - for example, if we saved the script in C:Users[user-name], value will be modified in cmd.exe /c start C:Users[user-name]Show_File_Extension_On_Off.vbs, where [user-name] It's your user)

- Close the regedit
After these changes you will notice that in Context Menu (Click-right on any free portion of the desktop) the option appeared and Show/Hide file extension (For the ends to appear/disappear, click on this option and then Press F5 for refresh).

Note: Before making any changes to system registers, it is advisable to make a backup (in the register, click on the File in the left-hand corner and select Export) to avoid any problems.