I can't change the default application for .txt files

In windows explorer, double clicking on a .txt file brought up the file in Notepad.
But I wanted to use EditPlus by default, so I right clicked on the text file, selected "open with" and then "choose another app".
Then I checked the box that says "always use this app to open .txt files".
The selected file then opens in EditPlus, and what's more, the next time I double click on a text file, it will open in EditPlus as desired.

Then I start Dopus, and I double click on a txt file, and it brings up the file in Notepad. Hmmm? Perhaps Dopus uses its own file associations and so it doesn't recognize the file association I made in the file explorer? Well, ok then, I'll just set it again. I right click on the text file, select "open with". The first thing I notice is that EditPlus isn't even in the list of applications that can handle txt files. So then I select "choose default program". Then I get a surprise. At the top of the list, it shows EditPlus with the heading "keep using this application" (suggesting that it is already the default). If I click on that, it indeed opens the txt file in EditPlus, but the next time I double click on a txt file, Notepad is again opened. I even tried scrolling down to "Look for more apps on this PC" and then browsed to EditPlus.exe and selected it. This worked in that it did open the text file using EditPlus, but still it did not change the default. The next time I clicked on a .txt file it resolutely opened Notepad yet again. This is so amazing to me I must have tried this carefully many dozens of times looking closely to see if there is anything I could possibly do differently. But no, I simply can't make it do what I want.

I also found another way to change the file associations, by going to the "Settings" menu and selecting "file types". Then I scrolled down to "System File Types" and finally to "TXT Text Document". Then it says "Opens with: Notepad", so I hit the "Change" button. This time EditPlus isn't even in the list of Available programs, so I click on "Browse", then I find EditPlus.exe and click on it. Then EditPlus is listed under Available Programs. So I highlight it and select "Add", which puts it in the "Open With list". Then I select EditPlus in that list and click "Set Default". It's clear that I have done this, because the "EditPlus" text next to the icon turns to boldface and the set default button changes to "Clear Default". Then I click on "OK" which closes the window. But the File Types folder that remains still says: "Details for 'TXT' extension --- Opens with: Notepad. And indeed that is what it does. This mystifies me even more than the other method, so I try this method another few dozen times until I'm sure that I can't convince Dopus that I really do want to use EditPlus instead of Notepad.

How can something be so easy in the windows file explorer be so difficult in Dopus?

~Paul

If you link your account and then run FileTypeDiag on the .txt extension and send the result, we'll take a look at what's going wrong.

Ok, I'm finally ready to proceed. I thought the problem might be related to the fact I was using a trial version, so I bought an upgrade from Dopus 10 to Dopus 11, but then it wouldn't install. I finally traced that problem to the fact that I didn't have enough space on the drive containing the windows temp folder. (Yes I should have more free space, but I still think this is a bug in the install program, which simply closed without even a hint about why it wouldn't run.) Finally I got it installed, but alas the problem mentioned above still persists, although I do have more information for you about the problem. It seems to be specific to the EditPlus editor. For example I changed the default application for txt files to "WordPad" and then double clicking on a txt file would open WordPad as expected. But then I changed the default application back to "EditPlus". I can tell that this was successfull because if I double click on a txt file in the windows file explorer, it will indeed open in EditPlus. However doing this in Dopus mysteriously opens NotePad. It almost seems it does a text compare of the application name with "EditPlus" and if it matches it opens Notepad instead. (I know it woudn't do this, but that's how it appears to behave). EditPlus is a pretty popular editor, and in fact I think I saw that some other Dopus users also had problems with EditPlus in this respect. I also tried playing with the setting relating to opening "unregistered text files" whatever those are, but none of the changes I made in that dialog seemed to effect this problem in the slightest. I linked my Dopus registration code to my account and ran FileTypeDiag as you suggested and I am attaching the result to this post.
Thanks
~Paul
txt.zip (15.1 KB)

Thank you for linking and sending the details.

We've identified the problem, which is EditPlus registering itself in a way which we had not seen before and were not supporting. We've written code to support this which will be in a future version, and make everything work automatically.

In the meantime, you can work around the problem as follows:

[ul][li]Open Settings > File Types.[/li]
[li]Expand System File Types and double-click the TXT type.[/li]
[li]Select the Events tab and double-click the Left double-click event.[/li]
[li]Set it to run "C:\Program Files\EditPlus\EditPlus.exe" {filepath} as shown below.[/li]
[li]Click OK in each of the three dialogs.[/li][/ul]


That works great.
Thanks for the fix Leo.
~Paul

Interesting, I remember I also had some trouble with the txt filetype, DO and Editplus.
Always wondered if it's me not understanding the basic things at times. o)

Thanks for that Leo as I have the same issue but didn't look too far into it as just use the right-click context menu and selected EditPlus. Now I don't have to :slight_smile: