[BUG] All parameters with %L disappear if no files selected

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
Flint
Power Member
Power Member
Posts: 3487
Joined: 2003-10-27, 09:25 UTC
Location: Antalya, Turkey
Contact:

[BUG] All parameters with %L disappear if no files selected

Post by *Flint »

1. Create some button that uses %L parameter (e.g. simple BAT-file that prints all the parameters he gets).
2. Make sure that no files are selected in the current panel.
3. Place the cursor on the [..] item (parent dir).
4. Press that button. All the parameters are not passed at all, not only %L!
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 10.52 / Win10 x64
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Yes, this is done so a program can be started even if no files are selected. You can put parameters which always need need to be passed into the "Command" field. However, no %xyz parameters are allowed there.
Author of Total Commander
https://www.ghisler.com
User avatar
Flint
Power Member
Power Member
Posts: 3487
Joined: 2003-10-27, 09:25 UTC
Location: Antalya, Turkey
Contact:

Post by *Flint »

So, maybe it worths doing so that the parameters were passed in all situations, even if no files are selected? %L may contain the path to an empty temp file in such a situation, or (as one of the Russian forum users suggested) the path to the current directory (this idea came from Shift+F6 behaviour: when no files are selcted and the cursor is on the [..] item, it opens the current directory's path editing field).
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 10.52 / Win10 x64
Post Reply