Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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!

share|improve this question
3  
What 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 Mar 10 '13 at 15:37
    
Which version of Windows are you running? –  Josh R Mar 10 '13 at 17:08
    
7 and XP, Josh R. –  Eamon Moloney Mar 10 '13 at 17:12
add comment

2 Answers

up vote 2 down vote accepted

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

share|improve this answer
    
What if it doesn't have an assoc? newline Windows XP: newline C:\Windows\system32>assoc .java newline .java= –  Eamon Moloney Mar 10 '13 at 16:57
    
@EamonMoloney see sample 2 –  STTR Mar 10 '13 at 18:13
add comment

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.