Add and delete right-click new menu in Windows system

  
 

The vast majority of the Windows
system right-click new menu has a long list of sub-items, such as WinRAR and Office family, PS and other menus. If the configuration is low or you are running a program that is occupied by a high resource, the right button will be stuck when the card is severely clicked.

Sometimes we need to create a certain type of file frequently. If you can create it directly from the right button, it will be much easier. In particular, the way Windows now renames the file name and suffix separately, and it takes a few more changes to modify the suffix name.

Delete the extra right-click menu

We need to delete the extra right-click menu, not all, then first need to know what file format needs to be deleted

on the desktop Right-click on the new item you want to delete and check the generated format. For example, I want to clean up the new PSD file of Photoshop
, and then set the artifact registry editor to locate the HKEY_CLASSES_ROOT item. There are many items starting with . , we can press the .psd on the keyboard to locate the .psd item, find ShellNew in the sub-item and delete it. ShellNew is not always under this item, sometimes it can be found under the second-level sub-item.

At this point we go back to the desktop and right click on the new PSD entry and it disappears.

Add right-click new item

Here we give an example to create a new .html suffix file, first locate HKEY_CLASSES_ROOT\\.html in the registry, right-click the new item ShellNew, in ShellNew Create a new string value NullFile content is empty.

At this point we can create a new .html format document by right-clicking. The name displayed depends on your default browser. For example, the Deadwood menu shows the new Chrome HTML Document. Sometimes we need to use a specific format, or initial content, for a new file, then we need to prepare a template file that initializes the content. Here I will give you an example, create a new html5.html file with the following contents:

<!DOCTYPE html><html><head><meta charset="utf-8" />< ;title>Untitled</title><meta name="keywords" content="" /><meta name="description" content="" /></head>< ;body>Hello World!</body></html>

Copy the file to the C:\\Windows\\ShellNew directory and create a new string FileName under the registry HKEY_CLASSES_ROOT\\.html\\ShellNew Fill in C:\\Windows\\ShellNew\\html5.html or just fill in the file name html5.html, because the system will automatically search for the C:\\Windows\\ShellNew\\ directory when only the file name is filled in.

When we create a new html file at this time, the content in the template file is filled in by default for us.

Simple way

Because HKEY_CLASSES_ROOT has a lot of items, positioning is troublesome, we can also use the import registry to create a new .reg file

we Need to create a new blank file Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\\.html\\ShellNew]"NullFile"=""

Use the template Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\\.html\\ShellNew]"FileName"="html5.html"

Edit as needed to double-click to import the registry.

Copyright © Windows knowledge All Rights Reserved