Windows right click [New] menu to add file suffix template

principle

By default, win10 will \HKEY_CLASSES_ROOT\extract ShellNewbranches 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\Classesa project, and then the "New" menu will be generated according to the project.

operate

Take adding .mda 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 .mdfile in the right-click "New" menu, then there must be no ShellNewbranch folder.

So you can add ShellNewfolders. There will be a OpenWithProgidsfolder by default, ShellNewthe folder and OpenWithProgidsthe same level are enough.

Delete the branch folder under it ShellNewto delete the corresponding suffix file from the right-click "New" menu

In ShellNewthe 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

registry command
Registry operation instructions

question

Right-click the "New" menu to find that there is an md file type name, which is md_auto_file文件
md_auto_file
the solution
. In the registry .mdfolder, modify the defaultmulti-string valuedata
solve

Notice

  1. Some suffixes ShellNeware 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
  2. 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, .docit WPS.DOC.6also exists in the branch under the branch, ShellNewthat is \HKEY_CLASSES_ROOT\.doc\WPS.DOC.6\ShellNew.
  3. If you don't know the exact suffix, you can refer to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Discardable\PostSetup\ShellNew\Classesthe project.

Guess you like

Origin blog.csdn.net/weixin_51623642/article/details/128230636