Strange interaction among Double Commander and Total Commander
Moderators: Hacker, petermad, Stefan2, white
Strange interaction among Double Commander and Total Commander
I'm a Double Commander user but lately I'm testing Total Commander, USB version, and getting a strange behaviour.
I don't know if the issue is on the DC or TC side but I suspect it's on the latter.
If I open DC and then I open TC, I see a strange title in TC windows.
Instead of "Total Commander (x64) 10.52"
I get "[2] Total Commander (x64) 10.52"
I think TC believes there is another session of itself active while instead it is a DC one.
I don't know how TC searches for other sessions but clearly there's a problem in its probing.
Maybe TC searches for other command managers and it's a wanted behaviour but I haven't found a clue on the forum.
Or maybe DC mocks a TC instance and tricks TC so the issue is on the DC side... but I have to start from somewhere.
I don't know if the issue is on the DC or TC side but I suspect it's on the latter.
If I open DC and then I open TC, I see a strange title in TC windows.
Instead of "Total Commander (x64) 10.52"
I get "[2] Total Commander (x64) 10.52"
I think TC believes there is another session of itself active while instead it is a DC one.
I don't know how TC searches for other sessions but clearly there's a problem in its probing.
Maybe TC searches for other command managers and it's a wanted behaviour but I haven't found a clue on the forum.
Or maybe DC mocks a TC instance and tricks TC so the issue is on the DC side... but I have to start from somewhere.
Re: Strange interaction among Double Commander and Total Commander
This suspicion is true - DC uses the same Window Class for main window - TTOTAL_CMDepikarma wrote: 2023-04-13, 06:08 UTC ...maybe DC mocks a TC instance and tricks TC so the issue is on the DC side...
Re: Strange interaction among Double Commander and Total Commander
Rather, this is due to the need to support plugins.
In addition to the class, TC needs a filter by InternalName or OriginalFileName.
In addition to the class, TC needs a filter by InternalName or OriginalFileName.
Overquoting is evil! 👎
Re: Strange interaction among Double Commander and Total Commander
Sorry but I don't get it... Why does TC use the Window Class method to check if another TC instance is active?
Isn't reading the process list names faster and more effective? I know that TC process can appear in several flavours (TOTALCMD.EXE, TOTALCMD64.EXE and probably some others) but it couldn't be the real reason.
Re: Strange interaction among Double Commander and Total Commander
Not true at all, SC supports TC's Plugins and still doesn't call itself ttotal_cmdFla$her wrote: 2023-04-13, 10:07 UTC Rather, this is due to the need to support plugins.
In addition to the class, TC needs a filter by InternalName or OriginalFileName.
Hoecker sie sind raus!
Re: Strange interaction among Double Commander and Total Commander
That's exactly the reason.
It doesn't prove anything. There are several file managers with a different window class that support TC plugins. But the problem is that not all of them. The author of DC in the process of debugging could encounter the fact that some plugin(s) requires this particular class.Sir_SiLvA wrote: 2023-04-13, 11:31 UTCNot true at all, SC supports TC's Plugins and still doesn't call itself ttotal_cmd
Added: Q.E.D. One of the developers confirmed this back in 2010:
Laughs best who laughs last!B4rr4cuda wrote:For the normal operation of the lister (and not only) plugins, DC create a fake form with the name of the TOTAL_CMD class.
Last edited by Fla$her on 2023-04-13, 13:26 UTC, edited 1 time in total.
Overquoting is evil! 👎
Re: Strange interaction among Double Commander and Total Commander
Such collisions are rather seldom and can be ignored.
There is no real benfit using Double Commander compared to TC on a Windows system
and also running them at the same time.
With the exception of the price.
There is no real benfit using Double Commander compared to TC on a Windows system
and also running them at the same time.
With the exception of the price.
Windows 11 Home, Version 24H2 (OS Build 26100.3915)
TC 11.51 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
TC 11.51 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
Re: Strange interaction among Double Commander and Total Commander
To know this for sure, you need to study the capabilities of the program in detail, as, for example, was partially demonstrated in this topic.Horst.Epp wrote: 2023-04-13, 12:47 UTCThere is no real benfit using Double Commander compared to TC on a Windows system and also running them at the same time.
Overquoting is evil! 👎
Re: Strange interaction among Double Commander and Total Commander
This statement is just an (unsupported and generalizing) opinion and and can be ignored.Horst.Epp wrote: 2023-04-13, 12:47 UTC There is no real benfit using Double Commander compared to TC on a Windows system and also running them at the same time.
Re: Strange interaction among Double Commander and Total Commander
And STILL, SC doesnt need to do this....but how about you quote some other 13 year old data to have the last (pointless) word, like always....Fla$her wrote: 2023-04-13, 11:49 UTCLaughs best who laughs last!B4rr4cuda wrote:For the normal operation of the lister (and not only) plugins, DC create a fake form with the name of the TOTAL_CMD class.![]()
Just because YOU dont like the TRUTH, it doesnt automatically make the facts wrong.
Hoecker sie sind raus!
Re: Strange interaction among Double Commander and Total Commander
2Sir_SiLvA
I like the TRUTH but your answers are not telling it, they are just funny and don't contain any info
I like the TRUTH but your answers are not telling it, they are just funny and don't contain any info

Windows 11 Home, Version 24H2 (OS Build 26100.3915)
TC 11.51 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
TC 11.51 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
Re: Strange interaction among Double Commander and Total Commander
Only your thoughtless trolling is pointless here, including ridiculing my assumption, which was later confirmed by a quote. Her age does not make the argument any less well-founded, on the contrary. The authors of other file managers warn in advance that only a part of TC plugins can work. Why you think SC is an exception is a mystery to me. Have you probably checked all plugins on it without exception? However, it doesn't matter, since it's not about him.Sir_SiLvA wrote: 2023-04-13, 14:54 UTCAnd STILL, SC doesnt need to do this....but how about you quote some other 13 year old data to have the last (pointless) word, like always....
Overquoting is evil! 👎
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Strange interaction among Double Commander and Total Commander
Yes, I'm using the window class to find previous instances - this way I can also pass parameters to the older instance like the left and right directory (e.g. when using parameter /O).
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: Strange interaction among Double Commander and Total Commander
2ghisler(Author)
So what about improving filtering?
So what about improving filtering?
Fla$her wrote: 2023-04-13, 10:07 UTCIn addition to the class, TC needs a filter by InternalName or OriginalFileName.
Overquoting is evil! 👎
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Strange interaction among Double Commander and Total Commander
I don't think that this is worth the trouble.In addition to the class, TC needs a filter by InternalName or OriginalFileName.
1. There is a function GetModuleFileNameEx, but it doesn't work across the 32-bit-64-bit barrier (32-bit programs don't see 64-bit programs and vice versa).
2. There is GetProcessImageFileName and QueryFullProcessImageName, but what if the user has renamed totalcmd.exe to Explorer.exe, e.g. to support some virus scanners in the context menu which restrict themselves to Explorer?
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com