%$DATE% only resolved in command field

Bug reports will be moved here when the described bug has been fixed

Moderators: white, Hacker, petermad, Stefan2

User avatar
Stefan2
Power Member
Power Member
Posts: 4153
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: %$DATE% only resolved in command field

Post by *Stefan2 »

Horst.Epp wrote: 2023-05-18, 16:55 UTC Ok, now I can use it :D
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_1845

Code: 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) :D


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
 
PiotrMPPL
Junior Member
Junior Member
Posts: 44
Joined: 2018-10-26, 07:04 UTC

Re: %$DATE% only resolved in command field

Post by *PiotrMPPL »

Why did you use the "-stl" switch?



Horst.Epp wrote: 2023-05-18, 16:55 UTC Ok, now I can use it :D
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_1845

Code: 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
PiotrMPPL
Junior Member
Junior Member
Posts: 44
Joined: 2018-10-26, 07:04 UTC

Re: %$DATE% only resolved in command field

Post by *PiotrMPPL »

Why did you use the "-stl" switch?
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6480
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: %$DATE% only resolved in command field

Post by *Horst.Epp »

PiotrMPPL wrote: 2023-06-05, 11:19 UTC Why did you use the "-stl" switch?
-stl : set archive timestamp from the most recently modified file
Windows 11 Home x64 Version 23H2 (OS Build 22631.3447)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73
QAP 11.6.3.2 x64
Post Reply