How to change default action for file types?

3

There is a certain text editor that I would like to set as the default editor for certain file types but if I try selecting it on the “Open With…” menu, that does not work. However, it has put an explorer context menu item in, which does work. How could I make this menu item the default double-click action, for certain file types?

Thank you SSRT and Josh R. Both good answers. It's a pity I can't give you both best answer.

For what it's worth, I found the answer today (twenty-four hours after asking this question). The specific answer to my specific problem, with the specific editor, that is!

Eamon Moloney

Posted 2013-03-10T15:26:40.970

Reputation: 163

3What do you mean it doesn't work? You should see an option, "Choose default program ..." and if you click that, an option for "Other Programs", which if clicked (at the down arrow), will list every application that's installed. If that's not enough, you can click the "Browse..." button and choose anything you like. If that's not working, can you paste an screenshot of what you see instead? – Nicole Hamilton – 2013-03-10T15:37:40.640

Which version of Windows are you running? – Josh – 2013-03-10T17:08:42.043

7 and XP, Josh R. – Eamon Moloney – 2013-03-10T17:12:18.630

Answers

2

Run cmd as Administrator

abstract sample:

assoc .Ext=EditorSuperExtName
ftype EditorSuperExtName=EditorSuper.exe %1 %*

real sample:

assoc .pdf=AcroExch.Document
ftype AcroExch.Document="C:\App32\Adobe\Acrobat 10.0\Acrobat\Acrobat.exe" "%1"

real sample 2:

assoc .java=javafile
ftype javafile="C:\App64\NetBeans 7.2\bin\netbeans.exe" "%1" %*

start, select run

run box

assoc ftype cmd

STTR

Posted 2013-03-10T15:26:40.970

Reputation: 6 180

What if it doesn't have an assoc? newline Windows XP: newline C:\Windows\system32>assoc .java newline .java= – Eamon Moloney – 2013-03-10T16:57:42.040

@EamonMoloney see sample 2 – STTR – 2013-03-10T18:13:28.890

4

If in Windows 7, open up Default Programs. Press Start and type Default Programs. Click on "Associate a filetype or protocol with a program".

Once that finishes discovering filetypes, select the file type you want to change the default program for and select "Change program". Choose the program from the list and Accept.

If Windows XP, Click on the "My Computer".

Click on the "Tools" tab along the menu bar.

Click on the "Folder Options" option.

Click on the "View" tab.

Make sure the "Hide extensions for known file types" is unchecked, so you can see the full filenames in Windows XP, including file type associations.

Click "OK" and close the "Folder Options" window.

Right-click on a file you wish to change.

Click on the "Properties" option in the right-click context menu.

Click the "Open with..." button in the "Properties" window. Note that the file may already have a file type association saved for it (it will display the icon of the associated application). Be aware that the button may be captioned "Change..." instead of "Open with...," depending on the version of Windows XP you are using.

Click on an application to choose a different file type association for your selected file type. You may also click "Browse" if the application you wish to use for your new file type association is not listed.

Click "OK" once you have chosen a file type association.

Josh

Posted 2013-03-10T15:26:40.970

Reputation: 4 746