File Associations
Hi all,
Could anyone help me on sorting out the file associations. I have an image view program, install and all the JPG and GIF extensions are associated with the program.
But after a day or so, it defaults back to Microsoft Photo Editor which I don’t want it to do.
So I was thinking about finding out where the File Extensions are in the registry and putting what I want the file extensions to be associated with. I.e. this image viewer program I want to use.
So basically could some point me in the right direction to where I find how to associate the extension to the program I want to use.
Cheers
TG
Could anyone help me on sorting out the file associations. I have an image view program, install and all the JPG and GIF extensions are associated with the program.
But after a day or so, it defaults back to Microsoft Photo Editor which I don’t want it to do.
So I was thinking about finding out where the File Extensions are in the registry and putting what I want the file extensions to be associated with. I.e. this image viewer program I want to use.
So basically could some point me in the right direction to where I find how to associate the extension to the program I want to use.
Cheers
TG
0 Comments
[ + ] Show comments
Answers (6)
Please log in to answer
Posted by:
rpfenninger
17 years ago
Posted by:
Thegunner
17 years ago
Posted by:
rpfenninger
17 years ago
Posted by:
Thegunner
17 years ago
After looking around and testing the file association extensions. I have think I have done it, needs more testing but so far so good.
There are two sections where the file is associated with a program.
HKEY_CLASSES_ROOT
In there you need the name of the program (in my case )
HKEY_CLASSES_ROOT\Irfanview.jpg
in there you have a DefaultIcon and shell folders which have information that links it to the image viewer
HKEY_LOCAL_MACHINE
In here you have as below
HKEY_LOCAL_MACHINE\SOFTWARE\CLASSES\.jpg
Here in the <default> value it is "irfanview.jpg"
The main Icon is the same as it was, but when you click on it, it open up with Irfan View.
There are two sections where the file is associated with a program.
HKEY_CLASSES_ROOT
In there you need the name of the program (in my case )
HKEY_CLASSES_ROOT\Irfanview.jpg
in there you have a DefaultIcon and shell folders which have information that links it to the image viewer
HKEY_LOCAL_MACHINE
In here you have as below
HKEY_LOCAL_MACHINE\SOFTWARE\CLASSES\.jpg
Here in the <default> value it is "irfanview.jpg"
The main Icon is the same as it was, but when you click on it, it open up with Irfan View.
Posted by:
Secondlaw
17 years ago
Let's say we're looking for the associate for .jpg. Open HCR\.jpg. Look at the default setting for .jpg. It points to, "jpegfile". Now scroll down to HCR\jpgegfile\shell\open\command. Take a look at the default setting. This is what determines what your files are opened with. Use the same strategy for .doc, .xls, etc....
Posted by:
nheim
17 years ago
Hi Thegunner,
please note an important thing here in the registry:
The Hive 'HKEY_CLASSES_ROOT' is a virtual section which is merged from:
HKEY_LOCAL_MACHINE\Software\Classes
and
HKEY_CURRENT_USER\Software\Classes
With this, each user can have their own filetype definitions (and others).
Their is one major drawback: The Hive file for the 'HKEY_CURRENT_USER\Software\Classes' section
'C:\Documents and Settings\<user profile>\Local Settings\Application Data\Microsoft\Windows\UsrClass.dat'
is not roamed in a 'roaming profiles' scenario.
Hope this helps a bit.
Regards, Nick
please note an important thing here in the registry:
The Hive 'HKEY_CLASSES_ROOT' is a virtual section which is merged from:
HKEY_LOCAL_MACHINE\Software\Classes
and
HKEY_CURRENT_USER\Software\Classes
With this, each user can have their own filetype definitions (and others).
Their is one major drawback: The Hive file for the 'HKEY_CURRENT_USER\Software\Classes' section
'C:\Documents and Settings\<user profile>\Local Settings\Application Data\Microsoft\Windows\UsrClass.dat'
is not roamed in a 'roaming profiles' scenario.
Hope this helps a bit.
Regards, Nick
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.