TC 11.009b StartMenu Command Line parameters

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
I-Vladimir
Junior Member
Junior Member
Posts: 29
Joined: 2012-09-26, 15:18 UTC

TC 11.009b StartMenu Command Line parameters

Post by *I-Vladimir »

I had 7zip command line parameters line

Code: Select all

a -r  -x@c:\ex.txt "c:\Users\LongPath\Archive\%N_%|$DATE|%.zip" "%N\*"
When 7zip executed with a folder as a parameter name - an archive created with 7z extension
When I added an extra dot - the issue resolved and an archive file created with zip extension
Corrected version with double dots at the ZIP

Code: Select all

a -r  -x@c:\ex.txt "c:\Users\LongPath\Archive\%N_%|$DATE|%..zip" "%N\*"
As a question: Is that possible to add $DATE formatting like YYMMDD?
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6973
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: TC 11.009b StartMenu Command Line parameters

Post by *Horst.Epp »

I-Vladimir wrote: 2023-06-29, 14:00 UTC I had 7zip command line parameters line

Code: Select all

a -r  -x@c:\ex.txt "c:\Users\LongPath\Archive\%N_%|$DATE|%.zip" "%N\*"
When 7zip executed with a folder as a parameter name - an archive created with 7z extension
When I added an extra dot - the issue resolved and an archive file created with zip extension
Corrected version with double dots at the ZIP

Code: Select all

a -r  -x@c:\ex.txt "c:\Users\LongPath\Archive\%N_%|$DATE|%..zip" "%N\*"
As a question: Is that possible to add $DATE formatting like YYMMDD?
Yes.
My button makes such a date format (2 digits for year month day) and adds the time to it.

If you want a zip archive, this work for me, no need for ..

Code: Select all

TOTALCMD#BAR#DATA
"C:\Program Files\7-Zip\7z.exe"
a %T"%B"_%|$DATE:YMD_hm|.zip @%UL -aoa -mmt -mx9 -ssw -stl -ssp -y
C:\Program Files\7-Zip\7zFM.exe
Pack selected


-1
I prefer the 7zip format using this button

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
C:\Program Files\7-Zip\7zFM.exe
Pack selected


-1
Windows 11 Home, Version 24H2 (OS Build 26100.4061)
TC 11.55 RC2 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.4 x64
User avatar
I-Vladimir
Junior Member
Junior Member
Posts: 29
Joined: 2012-09-26, 15:18 UTC

Re: TC 11.009b StartMenu Command Line parameters

Post by *I-Vladimir »

It looks my command line parameters were not in the correct format translating $DATE
Thanks
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50532
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: TC 11.009b StartMenu Command Line parameters

Post by *ghisler(Author) »

Moderator message

Moved to English forum
Author of Total Commander
https://www.ghisler.com
Post Reply