timestamp (yyyymmdd) as prefix to the Pack archive name
Moderators: Hacker, petermad, Stefan2, white
timestamp (yyyymmdd) as prefix to the Pack archive name
I'm zipping (packing) a lot.
OftenI need a zip-file-name with the timestamp as a prefix.
Your recent default suggestion of the filename is really good. And with with option I think it can be perfect.
recent good default
[complete pathname]\[recent directroy name][.kind of zip]
perfect default:
[complete pathname]\[recent directroy name][.kind of zip]
+
[optional timstamp]
=
[complete pathname]\[optional timstamp].[recent directroy name][.kind of zip]
The [optional timstamp] is choicable via checkbox at the "pack files" dalog and the format is yyyymmdd (or defined in the .ini)
Thanx a lot.
Juergen
OftenI need a zip-file-name with the timestamp as a prefix.
Your recent default suggestion of the filename is really good. And with with option I think it can be perfect.
recent good default
[complete pathname]\[recent directroy name][.kind of zip]
perfect default:
[complete pathname]\[recent directroy name][.kind of zip]
+
[optional timstamp]
=
[complete pathname]\[optional timstamp].[recent directroy name][.kind of zip]
The [optional timstamp] is choicable via checkbox at the "pack files" dalog and the format is yyyymmdd (or defined in the .ini)
Thanx a lot.
Juergen
Re: timestamp (yyyymmdd) as prefix to the Pack archive name
I would second such a request and like to request similar "place holders" which are now already available when you create a new directory (F7) or a new file (Shift-F4) such as:
[ymd]
[hms]
[d]
[t]
etc
Perhaps special consideration for a COUNTER which would indicate the number of files to be included in the zip archive. So you pack three files this new placeholder would place "3" in the filename
[ymd]
[hms]
[d]
[t]
etc
Perhaps special consideration for a COUNTER which would indicate the number of files to be included in the zip archive. So you pack three files this new placeholder would place "3" in the filename
F4MiniMenu (Forum) - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey). TCSyncComments (copy file comments)
Source at GitHub (AutoHotkey). TCSyncComments (copy file comments)
Re: timestamp (yyyymmdd) as prefix to the Pack archive name
This would be a great addition.
i use 'zip' and '7-zip' packing a lot for project version archival and backup, and specifying a date in the file name, like in project_bak_20221028.zip would be greatly improved and more efficient specifying project_bak_[ymd].zip or the like in the packer dialogue. And perhaps even better would be having helper buttons to fill predefined fields like in Multi-Rename Tool.
This way I would have no need to recall the current date or even make mistakes writing a wrong date in the name (sh*t happens).
i use 'zip' and '7-zip' packing a lot for project version archival and backup, and specifying a date in the file name, like in project_bak_20221028.zip would be greatly improved and more efficient specifying project_bak_[ymd].zip or the like in the packer dialogue. And perhaps even better would be having helper buttons to fill predefined fields like in Multi-Rename Tool.
This way I would have no need to recall the current date or even make mistakes writing a wrong date in the name (sh*t happens).
Regards,
Sergio
TCmd license #12059
TC11.03x86/x64 | Win11 Pro
Sergio
TCmd license #12059
TC11.03x86/x64 | Win11 Pro
Re: timestamp (yyyymmdd) as prefix to the Pack archive name
Workaround - after the file is created, you could use MULTIRENAME to add dates to the filename(s)
License #1945
Windows 10 Pro x64
Version 22H2 (OS Build 19045.3930)
TC 11.00 x64 and x86, Everything 1.5.0.1366a x64, QAP 11.6.3.1 x64
Windows 10 Pro x64
Version 22H2 (OS Build 19045.3930)
TC 11.00 x64 and x86, Everything 1.5.0.1366a x64, QAP 11.6.3.1 x64
Re: timestamp (yyyymmdd) as prefix to the Pack archive name
Thats what I dojinsight wrote: 2022-10-28, 19:27 UTC Workaround - after the file is created, you could use MULTIRENAME to add dates to the filename(s)

Button for it
Code: Select all
TOTALCMD#BAR#DATA
MULTIRENAME==AppendDateTime
%COMMANDER_PATH%\PLUGINS\SetFolderDate\SetFolderDate_1.5.ico
Add file(s) Date and Time to the name
0
-1
Code: Select all
AppendDateTime_name=[N]_[YMD]_[hm]
AppendDateTime_ext=[E]
AppendDateTime_params=0|1|1|1
Windows 11 Home, Version 24H2 (OS Build 26100.3915)
TC 11.51 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
TC 11.51 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
Re: timestamp (yyyymmdd) as prefix to the Pack archive name
Thanks for the ideas, but speed and efficiency is a must. Additional clicking and typing isn't a much desired option.
For the time being (and waiting for this to get into TCmd, I'm using an AutoHotKey macro script -part of my 'autorun' AutoHotKey.ahk file- for this.
In my code. writing `}dd` anywhere in the name field does the job (instant replacing. Just be sure to use a simple but rare sequence of chars to avoid unwanted text replacements).
Of course there are additional macros for different date-time combinations.
For the time being (and waiting for this to get into TCmd, I'm using an AutoHotKey macro script -part of my 'autorun' AutoHotKey.ahk file- for this.
In my code. writing `}dd` anywhere in the name field does the job (instant replacing. Just be sure to use a simple but rare sequence of chars to avoid unwanted text replacements).
Of course there are additional macros for different date-time combinations.
Code: Select all
:T*?:}dd::
FormatTime, CurrentDateTime,, yyyyMMdd
SendInput %CurrentDateTime%
return
:T*?:}dm::
FormatTime, CurrentDateTime,, dd/MM/yy
SendInput %CurrentDateTime%
return
:T*?:}dh::
FormatTime, CurrentDateTime,, yyyyMMddHHmmss
SendInput %CurrentDateTime%
return
:T*?:}ds::
FormatTime, CurrentDateTime,, yyMMdd
SendInput %CurrentDateTime%
return
:T*?:}-dd::
FormatTime, CurrentDateTime,, dd-MM-yyyy
SendInput %CurrentDateTime%
return
:T*?:}-dh::
FormatTime, CurrentDateTime,, dd-MM-yy HH:mm
SendInput %CurrentDateTime%
return
Regards,
Sergio
TCmd license #12059
TC11.03x86/x64 | Win11 Pro
Sergio
TCmd license #12059
TC11.03x86/x64 | Win11 Pro
Re: timestamp (yyyymmdd) as prefix to the Pack archive name
I do such replacements with Quick Access Popup (written in Autohotkey).
But such a function doesn't automate things as you must type something to get the replacament.
Our suggestions are working with simple button click.
But such a function doesn't automate things as you must type something to get the replacament.
Our suggestions are working with simple button click.
Windows 11 Home, Version 24H2 (OS Build 26100.3915)
TC 11.51 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
TC 11.51 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
Re: timestamp (yyyymmdd) as prefix to the Pack archive name
BUMP! for being able to use %$DATE% directly in the packing dialog please because what is the sense of this variable if not can be used in the most asked form for? 
(and yes if I just use %$DATE% in that combobox I expect tc to replace the : with .)

(and yes if I just use %$DATE% in that combobox I expect tc to replace the : with .)
Hoecker sie sind raus!
Re: timestamp (yyyymmdd) as prefix to the Pack archive name
Support. It is on my request list for years, maybe decades...
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: timestamp (yyyymmdd) as prefix to the Pack archive name
This is problematic (also in the F5 dialog) because when you open the dialog, it will suggest the target panel directory by default, and that may already contain % signs in the name.
Instead, use a button with parameters, e.g.
cm_packfiles /T="c:\path\filename%$DATE%.zip"
There is currently a bug that cm_packfiles doesn't work with the options in the parameters field, but that will be fixed in beta 5.
Instead, use a button with parameters, e.g.
cm_packfiles /T="c:\path\filename%$DATE%.zip"
There is currently a bug that cm_packfiles doesn't work with the options in the parameters field, but that will be fixed in beta 5.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: timestamp (yyyymmdd) as prefix to the Pack archive name
Isn't possible enclose it additionally in pipes, as in parameters field for button?
Re: timestamp (yyyymmdd) as prefix to the Pack archive name
Then how about adding the same [+] button cm_MkDir and cm_EditNewFile got?ghisler(Author) wrote: 2023-05-26, 08:43 UTC This is problematic (also in the F5 dialog) because when you open the dialog, it will suggest the target panel directory by default, and that may already contain % signs in the name.
Instead, use a button with parameters, e.g.
cm_packfiles /T="c:\path\filename%$DATE%.zip"
There is currently a bug that cm_packfiles doesn't work with the options in the parameters field, but that will be fixed in beta 5.
Hoecker sie sind raus!
Re: timestamp (yyyymmdd) as prefix to the Pack archive name
I do the same. For me it's not a workaround, it's just ordinary work that I sometimes do and in other cases don't do.
Because I don't like to have the buttonbar and therefore don't use buttons, I do it like this: [Ctrl+M] [F2] [2] *)
*) [Ctrl+M]: MUT (Multi Rename Tool)
[F2]: Load/Save settings
[2]: The pre-configured setting in this case is accessible with keyboard key [2]
Joube