Context Menu Entry (Windows)

  1. Find the extension you want to add an entry for in \HKEY_CLASSES_ROOT. For a Matroska-Container that’s \HKEY_CLASSES_ROOT\.mkv. The (Default)-Entry is a Pointer to where all the fun happens.
  2. Find the (Default)-Entry in \HKEY_CLASSES_ROOT (\HKEY_CLASSES_ROOT\VLC.mkv if VLC is installed)
  3. Select the “shell”-Entry and add a new Key. The name is the context menu entry
  4. Add a new Key named “command” and select it
  5. Edit the (Default)-Entry and point it to your Script/Program/whatever. For a Powershell-Script this would be e.g.: PowerShell “c:\Users\am\bin\replace-ws.ps1 -File \”%1\””