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!
[BUG] All parameters with %L disappear if no files selected
Moderators: white, Hacker, petermad, Stefan2
[BUG] All parameters with %L disappear if no files selected
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
Using TC 10.52 / Win10 x64
Using TC 10.52 / Win10 x64
- ghisler(Author)
- Site Admin
- Posts: 48088
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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
https://www.ghisler.com
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
Using TC 10.52 / Win10 x64