Default Programs - Associate a File Type or Protocol

Page 6 of 6 FirstFirst ... 456

  1. Posts : 72,046
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #50

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


  2. Posts : 3
    Windows 7 64 Bit Home Premium
       #51

    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 Computer


  3. Posts : 72,046
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #52

    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 Computer


  4. Posts : 1
    Windows 7 Premium x64
       #53

    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 Computer


  5. Posts : 1
    Windows 7 32 bit.
       #54

    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 Computer


  6. Posts : 72,046
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #55

    deniwow said:
    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 Computer


 
Page 6 of 6 FirstFirst ... 456

  Related Discussions
Our Sites
Site Links
About 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 09:56.
Find Us