cm_PackFiles with parameters

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
Horst.Epp
Power Member
Power Member
Posts: 7008
Joined: 2003-02-06, 17:36 UTC
Location: Germany

cm_PackFiles with parameters

Post by *Horst.Epp »

I'm struggle to use cm_PackFiles with parameters.

I have a button with the following em_command

Code: Select all

[em_PackFilesRAR]
cmd=cm_PackFiles 
param=/T="%T%B"D1R1A0E="rar"G:
menu=Pack selected elements to RAR with name of current dir
button=wcmicons.dll,30
It should pack the selection into a RAR archive.

If I select a dir with doesn't contain any files, it works and saves the full tree as rar archive,
including all files and sub-dirs.

If a dir also contains files, It creates an archive of the files only and in zip format
Windows 11 Home, Version 24H2 (OS Build 26100.4351)
TC 11.55 RC6 x64 / x86
Everything 1.5.0.1395a (x64), Everything Toolbar 1.5.5.0, Listary Pro 6.3.2.88
QAP 11.9.0.3 x64
User avatar
petermad
Power Member
Power Member
Posts: 16098
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: cm_PackFiles with parameters

Post by *petermad »

2Horst.Epp

Try:

Code: Select all

param=/T="%T%B.rar"E="rar"G
You don't need D1R1A0 - that are default settings.
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Horst.Epp
Power Member
Power Member
Posts: 7008
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: cm_PackFiles with parameters

Post by *Horst.Epp »

2petermad
Thanks
This works perfect :D
Windows 11 Home, Version 24H2 (OS Build 26100.4351)
TC 11.55 RC6 x64 / x86
Everything 1.5.0.1395a (x64), Everything Toolbar 1.5.5.0, Listary Pro 6.3.2.88
QAP 11.9.0.3 x64
sa16
Senior Member
Senior Member
Posts: 344
Joined: 2021-09-10, 07:15 UTC

Re: cm_PackFiles with parameters

Post by *sa16 »

That seems to work, too:

Code: Select all

param=/T="%T%B.rar"G
Post Reply