How can I get default file associations for specific file extension '.jpg'?

0

I want to find some file association that "open with.." can find at XP/Win7/Win8, I try to find "PhotoShop".

  1. First, I find the HKEY_CLASSES_ROOT.jpg

    PerceivedType = image
    \OpenWithProgids => jpegfile and Paint.NET.1
    
  2. So, I find HKEY_CLASSES_ROOT\SystemFileAssociations\ .jpeg

And it still not found anything about Photoshop.

Is my searching rule right? or Windows use another rule to find PhotoShop command line?

Now, if I right click .jpg file and click "open with..". It would show many programs can let us select, just like PhotoShop, Paint, Paint.NET, Windows Media Center, Windows Photo Viewer, etc.

I need to find the rule that OS can find file association with .jpg. Actually, I want to define this rule that can find all these application and work fine at Windows XP/7/8.

Mike Hung

Posted 2013-08-20T12:46:00.347

Reputation: 1

Which version of Windows are you talking about? You refer to 3 versions in the question and the process is different for all 3 – Shevek – 2013-08-20T12:57:43.597

Answers

0

I would suggest making this change without using the registry!

An easy way to change association to another program is to right click on the file type, and select Open With -> Choose default program. Then select the program you want and ensure the box "always use the selected program to open this kind of file".

Or, click start menu, and select Default Programs (also accessible from inside Control Panel).

You have the option here under Associate a file type or protocol with a program (where you can navigate to .jpeg)

Dave

Posted 2013-08-20T12:46:00.347

Reputation: 24 199

0

There should be another key

HKEY_CLASSES_ROOT\jpegfile

Have a look there.

snowdude

Posted 2013-08-20T12:46:00.347

Reputation: 2 560

Hi, this is mine. HKEY_CLASSES_ROOT\jpegfile\shell\open\command %SystemRoot%\System32\rundll32.exe ... HKEY_CLASSES_ROOT\jpegfile\shell\edit\command"C:\Program Files\Paint.NET\PaintDotNet.exe" "%1". And it's strange that seems like every windows application use different key to place there command. But OS still can reference them. – Mike Hung – 2013-08-20T13:47:17.843

It's a mine field. What's the default value for HKCR.jpg? – snowdude – 2013-08-20T13:52:34.593

HKCR.jpg (default) = None. ContentType = image/jpeg. PerceivedType = image. – Mike Hung – 2013-08-20T13:55:35.053