【问题标题】:How can i add an item in the desktop right click menu in Windows XP如何在 Windows XP 的桌面右键菜单中添加项目
【发布时间】:2011-11-04 05:35:26
【问题描述】:

我想在桌面背景右键有个条目。

我尝试过编辑注册表值。当我用谷歌搜索时,我知道我们必须将条目放在“HKEY_CLASSES_ROOT\Directory\Background\shell”中

所以,我在注册表中创建了以下键:

  • 'HKEY_CLASSES_ROOT\Directory\Background\shell\Notepad' 值为'记事本'
  • “HKEY_CLASSES_ROOT\Directory\Background\shell\Notepad\command”,值为“C:\WINDOWS\system32\notepad.exe”

当我在 windows7 中尝试它时,它工作正常。

但它在 windows xp 中不起作用

谁能帮我解决这个问题?

提前致谢

【问题讨论】:

标签: c# .net windows-xp registry contextmenu


【解决方案1】:

您必须为此创建一个外壳扩展处理程序,然后将其添加到 HKEY_CLASSES_ROOT\Directory\Background。 查看MSDN上的这篇文章http://msdn.microsoft.com/en-us/library/cc144067%28VS.85%29.aspx

扩展,你写的,应该是一个快捷菜单处理程序。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-08-20
    • 1970-01-01
    • 2012-04-07
    • 2017-08-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多