Is there a way to use environment variables in buttons or user command parameters?
The following user command zips TC into a file in the active panel:
Code: Select all
[em_BackupTC]
cmd=ZIPFROMLIST -9 "totalcmd%TC_VERSION%.zip"
param="c:\pathToLstFiles\tcbackup.lst"
button=%COMMANDER_EXE%,7
menu=Backup Total Commander Directory as ZIP File (into active panel)
However, the param line requires the source list file to be hard coded (c:\pathToLstFiles).
This line does not work:
Code: Select all
param="%COMMANDER_PATH%\tcbackup.lst"
---
Side notes:
-
would be very convenient. However, this does not work since ZIPFROMLIST expects the list file as param.
Code: Select all
cmd=ZIPFROMLIST -9 "totalcmd%TC_VERSION%.zip" "%COMMANDER_PATH%\tcbackup.lst"
-
tcbackup.lst simply contains one line:
This is very convenient.
Code: Select all
%COMMANDER_PATH%
In fact, such lst files can be used to create backup profiles for many situations/folders.
--> It would be great to have an env variable that points to the folder containing these lst files...