windows右键上下文菜单

时间:2022-04-06
本文章向大家介绍windows右键上下文菜单,主要包括windows右键上下文菜单使用实例、应用技巧、基本知识点总结和需要注意事项,具有一定的参考价值,需要的朋友可以参考一下。

右键打开文件夹

右键菜单,用VSCode打开文件和文件夹_燕儿归的专栏-CSDN博客

HKEY_CLASSES_ROOT\Directory\shell

新建子文件夹subfolder,名字不重要

双击默认,输入提示信息(以后显示在右键菜单中)

配置略缩图
新建字符串值(可扩充字符串值) "D:\Users\10941\AppData\Local\Programs\Microsoft VS Code\Code.exe"

在子文件夹中新建项Command 输入
"" "%1"

配置键位

提示信息后加上
(&key)
key为想要配置的键位

不明更改
"C:\Program Files (x86)\Tencent\QQMusic\QQMusic.exe" /play "%1"
"" /? "%1"

右键菜单<新建>

如何调整右键菜单?_arong的技术博客_51CTO博客

特定后缀文件右键菜单

Windows系统-右键菜单执行操作_qihuan12001的博客-CSDN博客

eg 修改 .ext 后缀文件
在HKEY_CLASSES_ROOT中找到.ext文件夹

- .ext

默认中数据为对应 文件夹名 eg software
在HKEY_CLASSES_ROOT中找到同名文件夹 eg software

- software
	- DefaultIcon
	- shell
		-
		-

在shell中创建文件夹 eg myfolder

- software
	- DefaultIcon
	- shell
		- myfolder
		-

在 myfolder 中创建 command 文件夹

- software
	- DefaultIcon
	- shell
		- myfolder
			- command
		-

在command默认数据中键入命令,命令格式:

"<可执行文件路径>" d "<文件路径>"
  • 路径中没有空格可不加 ”“
  • d 是前面路径执行后需要键入的运行指令参数
  • “%1” 意为被右键的文件或应用

火绒右键管理的实现方法

以vscode 为例

HKEY_CLASSES_ROOT\Directory\shell
	- VSCode
			..
			..
			+ LegacyDisable REG_SZ
		-Command

HKEY_CLASSES_ROOT\Directory\shellex\ContextMenuHandlers\
	- YunShellExt
			(默认) REG_SZ {..}->{..-}

ShellEx

ShellExView帮助你详细了解_david的技术博客_51CTO博客

附录

VS修改记录
- HKEY_CLASSES_ROOT
	- Directory
		- shell
			- AnyCode
			REG_SZ @C:\Program Files (x86)\Common Files\Microsoft Shared\MSEnv\2052\\VSLauncherUI.dll,-1002
				- command
				REG_SZ "C:\Program Files (x86)\Common Files\Microsoft Shared\MSEnv\\VSLauncher.exe" "%1" source:Explorer

.reg
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\AnyCode]
@="@C:\\Program Files (x86)\\Common Files\\Microsoft Shared\\MSEnv\\2052\\\\VSLauncherUI.dll,-1002"

[HKEY_CLASSES_ROOT\Directory\shell\AnyCode\command]
@="\"C:\\Program Files (x86)\\Common Files\\Microsoft Shared\\MSEnv\\\\VSLauncher.exe\" \"%1\" source:Explorer"

.reg
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\AnyCode]
@="@C:\\Program Files (x86)\\Common Files\\Microsoft Shared\\MSEnv\\2052\\\\VSLauncherUI.dll,-1002"

[HKEY_CLASSES_ROOT\Directory\Background\shell\AnyCode\command]
@="\"C:\\Program Files (x86)\\Common Files\\Microsoft Shared\\MSEnv\\\\VSLauncher.exe\" \"%V\" source:ExplorerBackground"
UpdateEncryptionSettings
不明
Powershell
别动
{3D1975AF-48C6-4f8e-A182-BE0E08FA86A9-}

百度网盘
HKEY_CLASSES_ROOT\Directory\shellex\ContextMenuHandlers\YunShellExt
- 上传到百度网盘
- 自动备份该文件夹
- 移动至同步空间
HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers\YunShellExt
- 上传到百度网盘
- 移动至同步空间
纯纯牛马功能,删了不亏

原文地址:https://www.cnblogs.com/lian435/p/16109816.html