How to use "cm_PackFiles" with date YYYYMMDDHHMMSS ?
Moderators: Hacker, petermad, Stefan2, white
How to use "cm_PackFiles" with date YYYYMMDDHHMMSS ?
Hi
How to use "cm_PackFiles" with date YYYYMMDDHHMMSS ?
Ex archiveYYYYMMDDHHMMSS.7z
How to use "cm_PackFiles" with date YYYYMMDDHHMMSS ?
Ex archiveYYYYMMDDHHMMSS.7z
- sqa_wizard
- Power Member
- Posts: 3893
- Joined: 2003-02-06, 11:41 UTC
- Location: Germany
Re: How to use "cm_PackFiles" with date YYYYMMDDHHMMSS ?
Try this button:
Code: Select all
TOTALCMD#BAR#DATA
cm_packfiles
/G /E="7-ZIP" /T="archive_%|$DATE:YMDhms|%..7z"
wcmicons.dll,30
cm_packfiles archive
-1
#5767 Personal license
Re: How to use "cm_PackFiles" with date YYYYMMDDHHMMSS ?
2sqa_wizard
and not:
I think it should be:sqa_wizard wrote:/G /E="7-ZIP" /T="archive_%|$DATE:YMDhms|%..7z"
Code: Select all
%|$DATE:YMDhms|.7z
Code: Select all
%|$DATE:YMDhms|%..7z
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Re: How to use "cm_PackFiles" with date YYYYMMDDHHMMSS ?
Doesn't work... 

- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: How to use "cm_PackFiles" with date YYYYMMDDHHMMSS ?
petermad is right, the following works for me (packs the currently selected files or the file under the cursor):
Copy this code with Ctrl+C and paste it to the button bar via right click on empty space in the bar.
If it doesn't work, then your Total Commander is too old.
Code: Select all
TOTALCMD#BAR#DATA
cm_packfiles
/G /E="7-ZIP" /T="archive_%|$DATE:YMDhms|.7z"
wcmicons.dll,30
cm_packfiles archive
-1
If it doesn't work, then your Total Commander is too old.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: How to use "cm_PackFiles" with date YYYYMMDDHHMMSS ?
I use this button.
It creates the archive in the target dir and the name is derived from the source dir.
For me, much better than always having the same base archive name.
It creates the archive in the target dir and the name is derived from the source dir.
For me, much better than always having the same base archive name.
Code: Select all
TOTALCMD#BAR#DATA
cm_packfiles
/G /E="7-ZIP" /T="%T%B_%|$DATE:YMDhms|.7z"
wcmicons.dll,30
cm_packfiles archive
-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