Home  >  Article  >  Add custom context menu items to the File Explorer menu in Windows 11

Add custom context menu items to the File Explorer menu in Windows 11

WBOY
WBOYforward
2023-04-25 18:19:231516browse

Microsoft has changed the context menu in File Explorer when launching the Windows 11 operating system. File Explorer has two context menus in Windows 11: The new compact menu opens first when the user right-clicks a file or folder in File Manager.

将自定义上下文菜单项添加到 Windows 11 的文件资源管理器菜单

The classic context menu can be opened from this new menu or using a shortcut. There is also an option to restore the classic context menu in File Explorer in Windows 11 so that it opens by default.

Programs can add their entries to the new context menu, but they need to have the correct programming to do so.

Windows 11 users can add their custom entries to the File Explorer context menu in Windows 11 using Windows Application Customization Context Menu. Open source programs are available as Microsoft Store apps or on GitHub.

Open source applications are easy to use, but still require some explanation. You can use this to create as many root entries as you want in the File Explorer context menu. Programs and scripts can then be added to these. You can add one entry for media, another for programming files, and a third for image and photo editing tasks.

Each entry has the following configuration options:

  • Title - The name that appears in File Explorer.
  • Order -- The order of items in the menu.
  • Exe -- The path to the executable file.
  • Param——Execution parameter.
  • Icon - program icon.
  • Match Folder - Select and execute on the folder.
  • Match files - all file extensions supported by this project. Multiple entries can be added by separating them with a space character, for example .png .jpg.
  • Multiple files - supports running the project when multiple files are selected.

A context menu root entry is set by default. Clicking the Settings icon displays the options to change the name of the root entry and create a new root entry. Changes need to be saved before they are available.

将自定义上下文菜单项添加到 Windows 11 的文件资源管理器菜单Needs to restart the explorer.exe process, reboot the system, or log out and back in for the changes to appear. Data is stored in JSON files.

The above is the detailed content of Add custom context menu items to the File Explorer menu in Windows 11. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:yundongfang.com. If there is any infringement, please contact admin@php.cn delete