Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Default Programs - Associate a File Type or Protocol

08 May 2009   #49
Microsoft MVP

64-bit Windows 8.1 Enterprise
Default Programs - Associate a File Type or Protocol

How to Associate a File Type or Protocol Default Program in Window 7


My System SpecsSystem Spec
17 Aug 2012   #50
Microsoft MVP

64-bit Windows 8.1 Enterprise

You could also do a system restore using a restore point (if available) dated before you did this to undo the changes made.

My System SpecsSystem Spec
17 Aug 2012   #51

Windows 7 64 Bit Home Premium

I do not have a restore point before this happened.
Thanks for all your help, if you have another option I would love to hear it, also, do you know if when changing the default program to the command prompt it locking up is a glitch?
My System SpecsSystem Spec
17 Aug 2012   #52
Microsoft MVP

64-bit Windows 8.1 Enterprise

Not usually. Usually you just wouldn't be able to open the file until you selected the proper default program.

If you like, export the registry .py and FileExts keys at the locations below, and upload it here. I'll be happy to look at it to see if we may be able to get this sorted.



My System SpecsSystem Spec
27 Aug 2013   #53

Windows 7 Premium x64

I've found that if you're trying to associate a file type with a portable app, this can be done by adding the path to the portable app to your environmental variable PATH statement.

The way I do this is:
Open a command prompt and type, "setx PATH <path_to_program>"
Example: "setx PATH C:\users\matt\Documents\progs" (This is case insensitive so you don't have to worry about uppercase anything.)

Note 1: The path can be a parent folder to a subfolder or to many recursive subfolders. For example, I used Notepad++ for my primary editor, but I use the portable version so I don't have to install the program for numerous reason I'll not describe here. I recently moved the folder to a different location and I lost access to the file association. I then ran "setx PATH <new_location>" and I was able re-associate the file types if/when necessary. But instead of adding "C:\users\matt\documents\progs\npp\unicode" I just added "C:\users\matt\documents\progs" which contained the remaining recursive sub-directories and this was sufficient to allow file associations. The beauty of doing it this way is that I can put any programs in this progs directory, in their own respective directories, and they're automatically implemented into my path statement.

Note 2: When you perform the 'setx' command, it does not append and will overwrite, so if you've ran this in the past and run it again you'll lose what you've previously entered. What I usually do is type command plus all of the paths into a text editor first appending any new, fully listed, directories, making sure I have all the paths I want to use, and then paste that in the command prompt. Also, setx will ONLY set the USER's environmental variable PATH, NOT the System's, so this will only affect your account and no others.

Finally, you can then setup your file associations.

Mileage my vary as I've only tried this on my computer, but I'm pretty sure this will work for everyone. If anyone gets a chance to try this option and it works, could you please reply as such so we can have a few people confirm their and my findings.

All of this is done without having to mess with the registry too!
My System SpecsSystem Spec


 Default Programs - Associate a File Type or Protocol

Tutorial Tools

Similar help and support threads for2: Default Programs - Associate a File Type or Protocol
Windows 7 Tutorial Category
How to add a file type to the default list? Customization
Mailto missing from registry (& Associate File Type or Protocol List) Browsers & Mail
Solved Unable to associate file type to upgraded version of a program Software
Associate a file type General Discussion
what can i associate an .nsis file type with Software
Problem with "Associate a file type". General Discussion
Associate file type to xp mode application? Virtualization

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 02:26 AM.
Twitter Facebook Google+

Windows 7 Forums

Seven Forums Android App Seven Forums IOS App

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33