Categories
Linux Registry Windows

Modifying File Associations With Registry Editor

This describes how to modify file associations with the registry editor. As an example assume we have a file of type .abc and two different editors of MyEditor1.exe and MyEditor2.exe.

1. Associate the extension with a filename string:

HKEY_CLASSES_ROOT.abc

Add a default string of “abcfile”

2. Associate 1:

Create the following key:

HKEY_CLASSES_ROOTabcfileshellOpen
// Note that this key “Open” is the default verb

Add the string: &Open with MyEditor1

Create the following key:

HKEY_CLASSES_ROOTabcfileshellopen EVC3command

Add the string: DriveLetter:PathToFileMyEditor1.exe

3. Associate 2:

HKEY_CLASSES_ROOTabcfileshellOpen MyEditor2

Add the string: &Open with MyEditor2

Create the following key:

HKEY_CLASSES_ROOTabcfileshellopen EVC3command

Add the string: DriveLetter:PathToFileMyEditor2.exe

Leave a Reply

Your email address will not be published.