win11 right-click new menu to add options

Need to operate 2 registry,

The following takes adding in the right-click menu .htmlas an example

In the primary key HKEY_CLASSES_ROOT, search and .html
find it, right-click it, select 新建-> ,
insert image description here

Insert picture description here
The project name is: ShellNew
insert image description here
After creating a new one, click it, and in the right pane, create a new one 字符串值, the name isFileName

insert image description here
2.
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Discardable\PostSetup\ShellNew

Find ShellNewand click it,
then in the right pane, edit Classes
insert image description here
and add the required file suffix, this example is to add.html

insert image description here

Close the registry, without restarting the computer,
check the effect, there is an extra html in the
insert image description here
right-click menu新建

February the 24th 2023 Friday

Guess you like

Origin blog.csdn.net/m0_47505062/article/details/129200117