Article Directory
principle
By default, win10 will \HKEY_CLASSES_ROOT\
extract ShellNew
branches before the system pops up the "New" menu after each right-click of the user, and automatically generate HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Discardable\PostSetup\ShellNew\Classes
a project, and then the "New" menu will be generated according to the project.
operate
Take adding
.md
a file suffix as an example
Open cmd
, run the Registry Editor ( regedit.exe
), HKEY_CLASSES_ROOT\
enter the suffix branch (for example .md
) under , according to the principle, the branch will be extracted ShellNew
, if there is no .md
file in the right-click "New" menu, then there must be no ShellNew
branch folder.
So you can add ShellNew
folders. There will be a OpenWithProgids
folder by default, ShellNew
the folder and OpenWithProgids
the same level are enough.
Delete the branch folder under it
ShellNew
to delete the corresponding suffix file from the right-click "New" menu
In ShellNew
the branch folder, create a newstring valueTypes of files can be named NullFile
.
Close the registry, and you can find the file type in the right-click【New】menu md
.
schematic diagram
question
Right-click the "New" menu to find that there is an md file type name, which is md_auto_file文件
the solution
. In the registry .md
folder, modify the defaultmulti-string valuedata
Notice
- Some suffixes
ShellNew
are hidden under sub-branches. For example, the ShellNew branch with the .doc suffix is hidden under the Word.Document.8 branch, for\HKEY_CLASSES_ROOT\.doc\Word.Document.8\ShellNew
- Some suffixes have more than one ShellNew branch, all ShellNew branches need to be deleted. For example, if MS Office and WPS are installed in the system at the same time,
.doc
itWPS.DOC.6
also exists in the branch under the branch,ShellNew
that is\HKEY_CLASSES_ROOT\.doc\WPS.DOC.6\ShellNew
. - If you don't know the exact suffix, you can refer to
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Discardable\PostSetup\ShellNew\Classes
the project.