Rogach
Rogach

Reputation: 27200

Adding secondary file association in Windows?

In Windows, you can right-click a file, and there is an option which lets you choose which program to launch with this file. So, for example, when user right-clicks a .cdr file, he can choose Open With -> Corel Draw option, and it would be launched with Corel Draw.

Now, I need to add certain program to that list (program has to be launched with some other parameters, as well). But I do not want to change the default program for that file. Is there a way to do it?

Upvotes: 1

Views: 263

Answers (1)

Jon Grant
Jon Grant

Reputation: 11530

The following registry keys control this list:

  1. HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ CurrentVersion \ Explorer \ FileExts \ .FileExtension \ OpenWithList

  2. HKEY_CLASSES_ROOT \ .FileExtension \ OpenWithList

See this MSDN page for more information on the format.

Upvotes: 1

Related Questions