Cannot change file association for .txt files??

User avatar
Pilgrim
2StarLounger
Posts: 177
Joined: 25 Jan 2010, 00:50
Location: Swanzey, NH

Cannot change file association for .txt files??

Post by Pilgrim »

Strange goings on here. For years I had all .txt files configured to open with metapad.exe. Today, they open with Notepad. So, I tried to change the default program in the usual manner, browsed to the metapad.exe file but nothing happens, i.e., the metapad.exe file isn't added to the list of optional programs. Metapad doesn't have an installer; it's a standalone application. So, I replaced the one in /Program Files/Metapad with a fresh one but still no go. I can choose one of the other default apps, e.g., Wordpad and that works.

Any suggestions on how to force Windows to open .txt files with the Metapad app?
Jeff

Artificial Intelligence is no match for natural stupidity!

User avatar
Rudi
gamma jay
Posts: 25455
Joined: 17 Mar 2010, 17:33
Location: Cape Town

Re: Cannot change file association for .txt files??

Post by Rudi »

Try using the context menu of stead of the default program method.

Go to windows explorer and right click on the .txt file and choose Open with. Select Another program (if the Metapad program is not listed). When the Open with Dialog opens, click Browse and point it to the Metapad.exe file. Choose open and this should configure to use this program.
Last edited by Rudi on 31 May 2010, 15:15, edited 1 time in total.
Regards,
Rudi

If your absence does not affect them, your presence didn't matter.

User avatar
HansV
Administrator
Posts: 78391
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Cannot change file association for .txt files??

Post by HansV »

Alternatively, edit the registry (the usual precautions apply):

- Select Start | Run...
- Type regedit and press Enter or click OK.
- Navigate to HKEY_CLASSES_ROOT\txtfile\shell\open\command in the left-hand page.
- Double-click the Default entry in the right-hand pane.
- Change it to the path and filename of Metapad followed by a space and "%1", e.g.

C:\Program Files\Metapad\Metapad.exe "%1"

- Click OK.
- The change should be effective immediately.
Best wishes,
Hans

User avatar
Pilgrim
2StarLounger
Posts: 177
Joined: 25 Jan 2010, 00:50
Location: Swanzey, NH

Re: Cannot change file association for .txt files??

Post by Pilgrim »

@Rudi: Image and no go.

@Hans: Worked perfect. I'm not going to even think of how this happened, hehe.
Jeff

Artificial Intelligence is no match for natural stupidity!

User avatar
Rudi
gamma jay
Posts: 25455
Joined: 17 Mar 2010, 17:33
Location: Cape Town

Re: Cannot change file association for .txt files??

Post by Rudi »

Love that banner Jeff...
Pretty cool!

Glad Hans's post solved it. Cheers
Regards,
Rudi

If your absence does not affect them, your presence didn't matter.