Config 1
[em_set_TastBefehle]
Cmd=cm_List
Param=%COMMANDER_PATH%\Config\Tastaturbelegung\TotalCommander_Tastaturbelegung.pdf
Parameter result >> c:\$Recycle.BinOMMANDER_PATHConfig\Tastaturbelegung\TotalCommander_Tastaturbelegung.pdf
------------------------------------------
Config 2
[em_set_TastBefehle]
Cmd=cm_List
Param=\Config\Tastaturbelegung\TotalCommander_Tastaturbelegung.pdf
Parameter result >> \Config\Tastaturbelegung\TotalCommander_Tastaturbelegung.pdf
------------------------------------------
PS: using "SumatraPDF Plugin"
[11.51 RC3] %COMMANDER_PATH% is resolved incorrectly
Moderators: petermad, Stefan2, white, Hacker
-
- Junior Member
- Posts: 6
- Joined: 2023-12-01, 18:39 UTC
- ghisler(Author)
- Site Admin
- Posts: 50105
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: [11.51 RC3] %COMMANDER_PATH% is resolved incorrectly
Not a bug. Environment variables only work in the "command" field, not in the "parameters" field. The parameters field uses placeholders like %P or %N instead. %C is the same as %C1, which is replaced by the path+name of the first selected file (or file under the cursor).
To use an environment variable in the parameters field, use the syntax %|variable name| instead. The correct parameter would therefore be:
To use an environment variable in the parameters field, use the syntax %|variable name| instead. The correct parameter would therefore be:
Param=%|COMMANDER_PATH|\Config\Tastaturbelegung\TotalCommander_Tastaturbelegung.pdf
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
-
- Junior Member
- Posts: 6
- Joined: 2023-12-01, 18:39 UTC
Re: [11.51 RC3] %COMMANDER_PATH% is resolved incorrectly

Error 40.
Thx
- ghisler(Author)
- Site Admin
- Posts: 50105
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: [11.51 RC3] %COMMANDER_PATH% is resolved incorrectly
If it contains spaces, surround it with double quotes. Double quotes from ini files get removed, so we need to duplicate them.
Param=""%|COMMANDER_PATH|\Config\Tastaturbelegung\TotalCommander_Tastaturbelegung.pdf""
Param=""%|COMMANDER_PATH|\Config\Tastaturbelegung\TotalCommander_Tastaturbelegung.pdf""
Moderator message from: ghisler(Author) » 2025-02-03, 10:01 UTC
Moved to will not be changed
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com