【问题标题】:Edit right-click context menus in Windows 7 [closed]在 Windows 7 中编辑右键单击上下文菜单 [关闭]
【发布时间】:2013-04-26 17:54:01
【问题描述】:

当我右键单击 MP3 文件时,我想使用名为 My Button 的注册表添加自定义选项 这将启动

C:\Program Files\MyApp\app.exe %1

following answer 适用于 Windows XP,但似乎对 Windows 7 没有影响。

【问题讨论】:

  • 实际上,我相信这很简单。它是否是 MP3 文件或名称是什么都没有关系。我需要一个通用的答案,所以通用的问题更适合这里。

标签: windows-7 registry contextmenu


【解决方案1】:

这个 PowerShell 代码可以做到这一点

Set-Location HKLM:\software\classes
Get-ItemProperty .mp3 | % '(default)' | % {
  '"C:\Program Files\MyApp\app" "%1"' |
  New-Item -Force "$_\shell\My Button\command"
}

Example

【讨论】:

    猜你喜欢
    • 2013-08-02
    • 1970-01-01
    • 1970-01-01
    • 2021-08-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-02-04
    • 1970-01-01
    相关资源
    最近更新 更多