Horst.Epp wrote: 2023-05-18, 16:55 UTC Ok, now I can use it![]()
Here my button to pack all selected files/dirs from the source to the target side.
The archive is named like the source dir followed by the current date time.
Example Dirname_20230518_1845Code: Select all
TOTALCMD#BAR#DATA "C:\Program Files\7-Zip\7z.exe" a %T%B_%|$DATE:YMD_hm| @%UL -aoa -mmt -mx9 -ssw -stl -ssp -y -mx9 C:\Program Files\7-Zip\7zFM.exe Pack selected -1
Great !
Thanks 2ghisler(Author)

References:
TC v11.00 beta 3
17.05.23 Added: New pseudo environment variable %$DATE% inserts current date and time in the form YYYYMMDDhhmmss,
or use placeholders from multi-rename, e.g. %$DATE:YMDhHmsi% (32/64)
TC v11.00 beta 1
26.04.23 Added: Command line parameters (button bar, start menu):
New parameter %|envvar| inserts environment variable envvar, e.g. %|windir| or %|$DESKTOP| in the parameter field (32/64)
The parameters field does not support environment variables normally because it supports paramters like %P%N.
This would collide with a variable name %P%.
Therefore the syntax is different there:
%|Variable name|
%|$DATE:Y-M-D h.m.s|
amd
10.06.21 TC v10.00
New placeholder %B for part of path (including branch view paths): %B or %B0 parent, %B1 grandparent etc. ......
New placeholder %Bt, %Bt1 etc: Parent, grandparent directory of target folder
New placeholder %B+ for part of path (including branch view paths), .....
Great enhancements