1

I want to add a custom option using registry called My Button when I right click an MP3 file which will launch

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

The following answer works great for Windows XP, but doesn't seem to have an effect on Windows 7.

Community
  • 1
  • 1
iTayb
  • 12,373
  • 24
  • 81
  • 135
  • Actually, I believe it was pretty straight forward. It doesn't matter if it's a MP3 file, or what the name would be. I need a generic answer, so generic question would fit better here. – iTayb Apr 26 '13 at 22:32

1 Answers1

1

This PowerShell code will do it

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

Example

Zombo
  • 1
  • 62
  • 391
  • 407