Associate a File Type with a Specific Program
Solution 1:
Method #1 (on the fly):
- Right-click a file of the type you want to change, and select Properties.
- In the General tab, click the Change button.
- Choose a program from the list, or click Browse to select an .EXE file on your hard disk.
Method #2 (view a list of file types):
- Open Control Panel.
-
In Control Panel Home, click Programs, and then click Make a file type always open in a specific program.
Or, in the Classic View, open Default Programs and then click Associate a file type or protocol with a program.
- Highlight a file type in the list and click Change Program.
Unfortunately, neither method in Vista allows you to choose anything but the default programs, such as the programs listed in your files' context menus. If you want complete control over your file types, use this tool:
Method #3 (File Type Doctor):
- Download and install Creative Element Power Tools.
- Open the Creative Element Power Tools Control Panel.
- Turn on the Edit file type associations option, and click Accept.
- Right-click a file of the type you want to change, and select Edit File Type to show this window:
Source
Solution 2:
How about Method #5 (for people who like the command line):
- Open an elevated command prompt.
- Use
FTYPE {fileType}={commandString}
to create a file type and associated command to open the file. - Use
ASSOC {.fileExtension}={fileType}
to associate a file extension with the file type you created.
Example:
FTYPE MyCustomType=C:\Program Files\MyCustomProgram\MyProg.exe "%1"
ASSOC .custom=MyCustomType
Note that many file types may already be registered on your system. You can list them all by just typing FTYPE
with no arguments.