如何仅在驱动器 C:\ 上向 Shell 菜单添加条目? [英] How i can add a Entry to Shell Menu only on drive C:\?

查看:28
本文介绍了如何仅在驱动器 C:\ 上向 Shell 菜单添加条目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要向 Windows 中的 Explorer Shell 添加上下文菜单项.添加一些注册表项很容易做到这一点:

I need to add a Context Menu Item to Explorer Shell in Windows. This is easy doing by adding some Registgry Entry:

[HKEY_CLASSES_ROOT\Drive\shell\Disk cleanup\command]
@="cleanmgr.exe" 

但我只想为驱动器 C:\ 左右添加此条目.我该怎么做?

but i like to add this entry only for drive C:\ or so. How i can do this?

谢谢!

推荐答案

试试这个.(此处适用于 Windows 7.)

Try this. (Works on Windows 7 here.)

[HKEY_CLASSES_ROOT\Drive\shell\Disk cleanup\command]
@="cleanmgr.exe" 
"AppliesTo"="C:"

请参阅创建快捷菜单处理程序高级查询语法,了解有关<代码的更多信息>AppliesTo 字段.

See Creating Shortcut Menu Handlers and Advanced Query Syntax for more about the AppliesTo field.

我没有看到上面列出的驱动器的确切用法,但它似乎可以工作并模仿其他列出的用法.

I don't see the exact usage above listed for drives but it seems to work and mimics other listed usages.

这篇关于如何仅在驱动器 C:\ 上向 Shell 菜单添加条目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆