Up until HolgerK's post in the thread C# How to make Total Commander execute a command? I didn't know that TC can open .tab files specified on command line. Since this didn't work with my regular wincmd.ini, but it did with a fresh wincmd.ini I tried to find out what the culprit is.
And I had success. In my case it's a packer plugin for STALKER archive files.
The bug:
When the plugin is registered like this:
Code: Select all
db0=448,%COMMANDER_PATH%\Plugins\stalker\stalker.wcx
Code: Select all
[activetabs]
0_path=C:\Windows\
0_options=1|0|0|0|0|0|0|
1_path=C:\Windows\
1_options=1|0|0|0|0|0|0|
activetab=1
[inactivetabs]
0_path=C:\Windows\
0_options=1|0|0|0|0|0|0|||10001
1_path=C:\Windows\
1_options=1|0|0|0|0|0|0|||10001
activetab=1
Code: Select all
TOTALCMD.EXE e:\a.tab
Code: Select all
---------------------------
Total Commander
---------------------------
Error in packed file E:\a.tab!
---------------------------
OK
---------------------------
Expected behavior: TC should open the tabs given in the .tab file instead of trying to open the file as an archive.
I tried to reproduce this with other packer plugins (7zip, img/ima, chm), but had no luck. So it seems it depends also on the packer plugin itself. Either way, for me it's a TC bug, because it shouldn't even try to use any packer plugin for the .tab file (why should it?).
Regards
Dalai