68

I am attempting to set the default program to open a file with and I am unable to do so. I am using Windows 7 and the file extension I am attempting to set a default program to is bfa (*.bfa); the program that not only generates this file type but also the program which I am attempting to set as the default to open it is Blowfish Advanced CS (http://bfacs.sourceforge.net/).

When I right click a file and select "Open With", I go through the motions of trying to select the program: clicking "Browse" with "Always use the selected program..." checked and then I browse to the program. Once I select the program it fails to pop up as an option in the "Open With" dialog. I suspect the problem relates to the fact that the OS is 64-bit and application is 32-bit. Any suggestions on how to proceed?

Journeyman Geek
  • 133,878
Gedalya
  • 945

16 Answers16

86

Find the registry key for the application you wish to associate, lets say for Notepad++.exe in \HKEY_CLASSES_ROOT\Applications\notepad++.exe \shell\open\command\

Check if the .exe path is right. If not, then change the path to the correct one.

After doing this, you can now go to the file you wish to associate and use the standard way Open With and choose the program you wish to open.

Explanation:

This issue happens when Windows gets confused about the filepath for a program, as file associations are handled using only the base executable name of a program (source).

This bug can be caused by:

  • Running multiple versions of a program (i.e. Notepad++ and Notepad++ Portable)
  • Moving programs to different folders.
  • Changing drive letters
Stevoisiak
  • 16,075
13

I had the same problem, and none of the solutions worked (like the method below of going to the Control Panel - which does the same thing if you right click the file->Open With->Choose Default). Even after selecting the new program many times, it was stuck with the old one.

I fixed it by editing the registry. Go to the concerned extension like this (I had problem with .cpp):

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.cpp

Besides these two keys: OpenWithList and OpenWithProgids, it might have a third one called 'UserChoice'. Just delete that third key. After that, it will allow you to change the default program for that file extension.

Piyush Soni
  • 321
  • 3
  • 10
4

example : file type .css

find and delete key

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.css

HKEY_CURRENT_USER\Software\Microsoft\Windows\Roaming\OpenWith\FileExts\.css

HKEY_CLASSES_ROOT\.css

open task Manager and Restart Windows Explorer Or reboot computer

omid
  • 41
3

I wanted to share my solution. I wanted to open .spq with SpeQ Mathematics.exe, which is a standalone program (it does not require installation). The program did not appear in the list even after I found it via browsing and selected it.

I went to

HKEY_CLASSES_ROOT\.spq

and found listed Data: spq_auto_file

I then went to

HKEY_CURRENT_USER\Software\Classes\spq_auto_file\shell\open\command

and saw the wrong folder listed under Data. I changed the folder to the actual one and the program appeared in the context menu list. I suppose the moving around that can be done with standalone programs was the reason for my problem.

Serzh
  • 31
3

Try

Control Panel\All Control Panel Items\Default Programs\Set Associations

enter image description here

ADDED

Also see the question here ftype changes are ignored. Where does Windows retrieve the "incorrect" value from? How can I enforce my changes? for an example of the assoc and ftype commands. Starting an administrative cmd prompt and running the assoc command for the extension, then the ftype command for it, should associate the extension with the program you specify.

barlop
  • 25,198
2

I've had the same/similar problem.

Here is what caused it. I use keepass.exe to open .kbd files both of which I synch over cloud. When I moved the folder it stopped working. The OS knows that that's my program, but I'm unable to update the location of the executable through the Open-with dialog.

The solution...

  • Open regedit
  • find the application you are looking for in HKEY_CLASSES_ROOT\Applications\.
    • Example: atom.exe is located at HKEY_CLASSES_ROOT\Applications\atom.exe
  • delete that entry
  • right-click the file type and try selecting the program again. It should now appear
Daniel
  • 548
2

I was able to fix my problem with the program itself. See the picture below for reference; under 'Tools' > 'Options'

The 'Miscellaneous' tab; under 'Registry Setup' there are two options that alter the registry. I applied both and it works now. What isn't clear is how I could have done this without the program doing this.

enter image description here

Gedalya
  • 945
1

For anyone having the same issue but with Office 365 / Excel 2016:

Going to "Programs and Features" -> right click "Office 365" -> change -> Quick Repair fixed the issue for me.

Envyrus
  • 121
1

On my Windows 10, everything else failed, except for Nifsoft' FileTypesManager

Julio Nobre
  • 405
  • 5
  • 17
0

You can use this command for ".txt" files. but you must open command prompt with admin roles. ftype txtfile="C:\Program Files (x86)\Notepad++\notepad++.exe""%1"

if you don't know file type of your file you can use "assoc .txt" command on command prompt.

For more details you can check this link: Windows “Open With” application not appearing as an option

It works for me.

0

I had AutoCAD 2007 installed on my computer then I installed AutoCAD 2010. But I couldn't reassociate the file extensions so they would open up using AutoCAD 2010.

My solution was to rename the 2007 version acad.exe. Immediately afterward, the 2010 version showed up on the list of available programs to associate with that file type.

Kevin
  • 1
0

You need to delete the UserChoice key from

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts

Find your extension, then find the key called “UserChoice” under that extension.

Doug Deden
  • 2,204
  • 1
  • 12
  • 16
Hacken
  • 1
0

Just for you guys to know...

I had the same problem on win8.1.

That default file dialog seems to hang explorer, it happens both from the folder´s right click option and from set association screen, I think there is some problem with that functionality...

For me, killing explorer process via Task Manager and reopening explorer, (from task manager) via File -> new Task -> explorer.exe, completed the process of setting the default program normally and everything works fine now.

I don´t know if was just luck, but it is worth trying...

-1

i fixed this issue by right-clicking the file i wanted to open and choosing "properties". on the "general" tab it said "opens with: unknown program" or something like that. i just clicked the "change..." button next to that message and picked the app i origionally wanted. i think maybe this happens when the associated application gets deleted.

james
  • 1
-1

The best solution is to remove the user account that cannot set a default program to open a file and re-create a new user. At some point when installing/updating an application, Windows corrupted the policy for that user account. Be sure to copy all the user's data (c:/users/userid/) before removing that user account and log in with a different user with Sysadmin account.

To Remove the user account: Control Panel >> System >> Advanced system settings >> Advanced (tab) >> Setting (under User Profile) >> delete the corrupt user account.

Then reboot, log in and create a new user. You can use the same account name.

khanh
  • 1
-1

Try setting the default from within the program you want to use as opener.

I had similar problem when php files all of a sudden started opening with Acrobat which caused an error as Acrobat can't handle php. I tried to change the association, but all failed. Finally went to Dreamweaver's preferences and set it as opener for php.

kenorb
  • 26,615