Windows 7 Search *.reg file to change file association for *.txt extension and/or txtfile type?

pstein

Extraordinary Member
Joined
Mar 20, 2010
Messages
454
Yes, I could change the file association via Win GUI or use some third party tools.

However I prefer to do this directly in Registry by a *.reg file (in Win 7 64bit).

How can I set my editor "D:\tools\editor\myeditor22.exe" as default editor when double clicking on a file with *.txt extension?

How can I set my editor "D:\tools\editor\myeditor22.exe" as default editor when double clicking on a file of "txtfile" file type?

Again I would like to get the corresponding *.reg script.
And I am not talking about the "Open with" context menu but the double click action.

Peter
 
Edit isn't the default action so, double clicking the file will import it. Notepad is already the default editor for .reg files.