Need to operate 2 registry,
The following takes adding in the right-click menu .html
as an example
In the primary key HKEY_CLASSES_ROOT, search and .html
find it, right-click it, select 新建
-> 项
,
Insert picture description here
The project name is: ShellNew
After creating a new one, click it, and in the right pane, create a new one 字符串值
, the name isFileName
2.
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Discardable\PostSetup\ShellNew
Find ShellNew
and click it,
then in the right pane, edit Classes
and add the required file suffix, this example is to add.html
Close the registry, without restarting the computer,
check the effect, there is an extra html in the
right-click menu新建
February the 24th 2023 Friday