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

17 Aug 2012   #50
Brink
Microsoft MVP

64-bit Windows 10 Pro
 
 

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
vincemoe

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
Brink
Microsoft MVP

64-bit Windows 10 Pro
 
 

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.

HKEY_CLASSES_ROOT\.py

and

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts
My System SpecsSystem Spec
27 Aug 2013   #53
enigmafyv

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
.

30 Nov 2014   #54
deniwow

Windows 7 32 bit.
 
 
Association Problem

So Admin I did like you showed in the steps.And also tryed to do it with cmd and .reg file.But it's still not working.Can you help please?
My System SpecsSystem Spec
30 Nov 2014   #55
Brink
Microsoft MVP

64-bit Windows 10 Pro
 
 

Quote   Quote: Originally Posted by deniwow View Post
So Admin I did like you showed in the steps.And also tryed to do it with cmd and .reg file.But it's still not working.Can you help please?
Hello Deniwow, and welcome to Seven Forums.

See if using the tutorial below for the affected file types may be able to help.

Default File Type Associations - Restore
My System SpecsSystem Spec
Comment

 Default Programs - Associate a File Type or Protocol




Tutorial Tools





Similar help and support threads
Windows 7 Tutorial Category
Default Programs/Associate a file type or protocol with a program BUG
Trying to change some file associations, so following the standard procedure: Default Programs Associate a file type or protocol with a program When it tries to load the file extension list ('Loading....'), I get the messages: Windows explorer has stopped working Windows is checking...
General Discussion
Mailto missing from registry (& Associate File Type or Protocol List)
Recently developed problem (perhaps since a new clean install of everything on SSD): - Opera 11.62/12b or Waterfox 12 browsers, email client (Sylpheed) set as Windows default, set as Opera and Waterfox mailto default with the following command/parameter C:\Program Files...
Browsers & Mail
Unable to associate file type to upgraded version of a program
I downloaded an upgrade to DxO Pro Optics. The old one, v6, was buggy so I upgraded to v7.1, which is in the v7 folder. I can't associate my raw Canon files to DxO v7.1, probably because in regedit it says: HKEY_CLASSES_ROOT\Applications\DxOOpticsPro.exe\shell\open\command it reads, under...
Software
Associate a file type
I accidentally associated the .lnk (shortcut) extension with a program. Now all my desktop icons open that program (Picassa). I tried to change it back to Unknown Program using "set associations - change programs" but it does not give the option to change it to "Unknown Association" Can anyone...
General Discussion
what can i associate an .nsis file type with
Hi. I am unfamiliar with the windows installer of a piece of software I downloaded. The installer's file type is: .nsis Win7 is asking me to identify the prog that will run the file type. From search, I have learned that the .nsis stands for Nullable Install system script (?). However,...
Software
Associate file type to xp mode application?
i have this seen before installing acrobat on my seven, while successful testing to use an old scanner and other hardware in the virtual xp, i had to install acrobat reader 5. suddenly all my pdf files, formerly with unknown icon had the old acrobat 5 icon and on double click the xp mode...
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 10:28.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App