Windows – How to Change Default Action for File Types

windowswindows-registry

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!

Best Answer

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

Related Question