How to add File Extension Toggle to Right Click in Windows 7 32/64 bit


Reading this tutorial will show you how to add ‘Show File Extension’ to context menu in windows 7 without displaying console(command prompt) using only a single file. For adding Hidden Files Toggle to right click please  go here

To Add ‘Show File Extension’ to right click

First create a notepad file named sometext.txt. Open it and copy the given code to it .


Windows Registry Editor Version 5.00


[HKEY_CLASSES_ROOT\Directory\Background\shell\File Extension Toggle] “HasLUAShield”=””

[HKEY_CLASSES_ROOT\Directory\Background\shell\File Extension Toggle\command] @=”wscript.exe C:\\Windows\\Toggle_Show_Hide_Known_Files_Extensions.vbs”

[HKEY_CLASSES_ROOT\LibraryFolder\Background\shell\File Extension Toggle\command] @=”wscript.exe C:\\Windows\\Toggle_Show_Hide_Known_Files_Extensions.vbs”

ECHO FileExtension = “HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\HideFileExt” > c:\windows\Toggle_Show_Hide_Known_Files_Extensions.vbs
ECHO Set Command1 = WScript.CreateObject(“WScript.Shell”) >> c:\windows\Toggle_Show_Hide_Known_Files_Extensions.vbs
ECHO Check = Command1.RegRead(FileExtension) >> c:\windows\Toggle_Show_Hide_Known_Files_Extensions.vbs
ECHO If Check = 1 Then >> c:\windows\Toggle_Show_Hide_Known_Files_Extensions.vbs
ECHO Command1.RegWrite FileExtension, 0, “REG_DWORD” >> c:\windows\Toggle_Show_Hide_Known_Files_Extensions.vbs
ECHO Else >> c:\windows\Toggle_Show_Hide_Known_Files_Extensions.vbs
ECHO Command1.RegWrite FileExtension, 1, “REG_DWORD” >> c:\windows\Toggle_Show_Hide_Known_Files_Extensions.vbs
ECHO End If >> c:\windows\Toggle_Show_Hide_Known_Files_Extensions.vbs
ECHO Command1.SendKeys “{F5}” >> c:\windows\Toggle_Show_Hide_Known_Files_Extensions.vbs


Now save the file as Show File Extension Toggle.bat. The extension must be .bat. Now comes the tricky part, simply double clicking the file will not work. You will have to run the file as administrator. To run the file as Administrator

Right click on the program shortcut or program .exe file, and click on Run as administrator. (See screenshot below)

If prompted by UAC, then click on Yes to apply permission to allow the program to run with full permission as an Administrator.

NOTE: If you are doing this is while logged in as standard user instead of an administrator, then you will need to provide the administrator’s password before the program will run as administrator.

Now Right Click ‘Show File Extension Toggle.bat‘ & Run as Administrator. So that’s it now you can simply right click on your desktop and toggle File Extension.(See screenshot below)


To Remove ‘Show File Extension‘ from context menu

Create a notepad file sometext.txt and copy the below code to it


Windows Registry Editor Version 5.00


[-HKEY_CLASSES_ROOT\Directory\Background\shell\File Extension Toggle] [-HKEY_CLASSES_ROOT\Directory\Background\shell\File Extension Toggle\command] [-HKEY_CLASSES_ROOT\LibraryFolder\Background\shell\File Extension Toggle\command]

DEL c:\windows\Toggle_Show_Hide_Known_Files_Extensions.vbs


Save the file as Remove File Extension Toggle.Bat.

Now Right Click ‘Remove File Extension Toggle.bat’ & Run as Administrator.


Easy Way

You can download the above 2 files here File Extension

 NOTE: You must run the files as Administrator.


VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)
Related Posts Plugin for WordPress, Blogger...


Total Views :5,645

About Gamer