Customize right click menu

There are quite a few programs out there to remove items from your context menus. Tools to add new items are sparse. However, if you're a little familiar with Windows' registry editor, you can add your own context menu items pretty easily yourself. Before getting started with the registry, it is recommended that you make a backup of the registry keys.

1. With all files

Open the registry editor with Start / To carry out / type regedit. To create a context menu item that appears on a right-click on any file type, go to HKEY_CLASSES_ROOT\*. To open all kinds of files in Notepad, right-click on HKEY_CLASSES_ROOT\*\shell and choose New / Key. Name this key Open in Notepad, and create the subkey in it Command at. In the right pane of the registry editor, double click (Default) and you give it the value notepad.exe %1. The addition %1 is required for the clicked file to open in Notepad. When right clicking on files you will now find the option in your context menu. The principle for creating your own context menu items is always the same: in shell create a new key with the desired name. Here you create a subkey called Command, in which you enter the value (Default) provides the command to be executed when clicking on the relevant context menu item.

From now on, you can quickly open an HTML file in Notepad.

2. At the desktop

When you right-click on your desktop or on an empty spot in a folder, a context menu also appears. It can be useful to include certain frequently used programs or frequently visited websites. To do this you must in the registry location HKEY_CLASSES_ROOT\Directory\Background\shell to be. For example, if you want to add the Computer!Totaal website to these menus, navigate to this key, and create a new key called Website Computer!Total. In the subkey Command that you create in this, place the command “C:\Program Files\Internet Explorer\iexplore.exe” // If you use another browser or website, you must of course adjust this command. In the same way, you add menu items for frequently used programs. In Directory\Background\shell create keys for this with the correct program name and a subkey with the name Command. Here you specify for the value (Default) the path to the executable file of that application.

Programs and websites can be opened quickly this way.

3. For specific files

In order for context menu items to appear on specific files, you must in HKEY_CLASSES_ROOT search in the key of the relevant file. For example, to register or deregister dll files, you usually first run the command Regsvr32 or Regsvr32 /u followed by the path to the appropriate dll file. We'd rather Register dll and Dll deregister in the context menu with a right mouse click on such a file. To do this, we navigate to HKEY_CLASSES_ROOT\dllfile, and since there is no key in this yet shell we create it first. Here we create two new keys: Register dll and Dll deregister. In each of these keys we create another subkey Command, and in this we provide the value (Default) respectively of the commands Regsvr32 %1 and Regsvr32 /h %1. Note that also here the addition %1 is required again. After this you will find both options in the context menu under dlls.

Dlls can now be registered with two mouse clicks.

Recent Posts

$config[zx-auto] not found$config[zx-overlay] not found