[b4] How to cm_PackFiles into current dir with parameters?
Moderators: Hacker, Stefan2, white
[b4] How to cm_PackFiles into current dir with parameters?
I want pack selected files\folders into current dir (in the same panel). Give me example how do that with parameters?
sorry for my poor english
OS: Win10 TC: 11 x64
OS: Win10 TC: 11 x64
Re: [b4] How to cm_PackFiles into current dir with parameters?
cm_PackFiles /M1T="1.zip"
but i dont't know how to set zip name to current dir name
but i dont't know how to set zip name to current dir name
Re: [b4] How to cm_PackFiles into current dir with parameters?
This way
cm_PackFiles /M1T="%B.zip"
Windows 11 Home x64 Version 22H2 (OS Build 22621.1778)
TC 11.00b5 x64 / x86
Everything 1.5.0.1350a (x64), Everything Toolbar 1.1.1
Listary Pro 6.2.0.41
QAP 11.6.2 x64
TC 11.00b5 x64 / x86
Everything 1.5.0.1350a (x64), Everything Toolbar 1.1.1
Listary Pro 6.2.0.41
QAP 11.6.2 x64
- petermad
- Power Member
- Posts: 12995
- Joined: 2003-02-05, 20:24 UTC
- Location: Valsted, Denmark
- Contact:
Re: [b4] How to cm_PackFiles into current dir with parameters?
Doesn't work - you cannot use %B in the Command field, and currently the parameters doesn't work in the Parameters field (hopefully that will be fixed)cm_PackFiles /M1T="%B.zip"
License #524 (1994)
Danish Total Commander Translator
TC 11.00b5 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.4.1.1022 (x64)
TC 3.42 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.00b5 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.4.1.1022 (x64)
TC 3.42 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Re: [b4] How to cm_PackFiles into current dir with parameters?
For testing I made a button using the parameter field.
This works here, I only have to press ok.
The archive is created in the target with the name of the source folder.
Code: Select all
TOTALCMD#BAR#DATA
cm_PackFiles
/M1T="%B.zip"
C:\Tools\Wincmd\TOTALCMD.EXE,5
-1
Windows 11 Home x64 Version 22H2 (OS Build 22621.1778)
TC 11.00b5 x64 / x86
Everything 1.5.0.1350a (x64), Everything Toolbar 1.1.1
Listary Pro 6.2.0.41
QAP 11.6.2 x64
TC 11.00b5 x64 / x86
Everything 1.5.0.1350a (x64), Everything Toolbar 1.1.1
Listary Pro 6.2.0.41
QAP 11.6.2 x64
Re: [b4] How to cm_PackFiles into current dir with parameters?
2Horst.Epp
The name of the parent folder is substituted by default, so you think %B works, but it doesn't. See p. 4.
Clear the parameters field and get the same result when selecting multiple files/folders.
The name of the parent folder is substituted by default, so you think %B works, but it doesn't. See p. 4.
Clear the parameters field and get the same result when selecting multiple files/folders.
Re: [b4] How to cm_PackFiles into current dir with parameters?
2Fla$her
You are right, thanks for the clarification.
You are right, thanks for the clarification.
Windows 11 Home x64 Version 22H2 (OS Build 22621.1778)
TC 11.00b5 x64 / x86
Everything 1.5.0.1350a (x64), Everything Toolbar 1.1.1
Listary Pro 6.2.0.41
QAP 11.6.2 x64
TC 11.00b5 x64 / x86
Everything 1.5.0.1350a (x64), Everything Toolbar 1.1.1
Listary Pro 6.2.0.41
QAP 11.6.2 x64
- petermad
- Power Member
- Posts: 12995
- Joined: 2003-02-05, 20:24 UTC
- Location: Valsted, Denmark
- Contact:
Re: [b4] How to cm_PackFiles into current dir with parameters?
The name is by deafult set to the parent folder when multiple files are selected as Fla$her also points out, and the task was to pack in the source panel (same panel):Horst.Epp wrote:The archive is created in the target with the name of the source folder.
KozakMak wrote:I want pack selected files\folders into current dir (in the same panel)
License #524 (1994)
Danish Total Commander Translator
TC 11.00b5 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.4.1.1022 (x64)
TC 3.42 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.00b5 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.4.1.1022 (x64)
TC 3.42 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
- petermad
- Power Member
- Posts: 12995
- Joined: 2003-02-05, 20:24 UTC
- Location: Valsted, Denmark
- Contact:
Re: [b4] How to cm_PackFiles into current dir with parameters?
2KozakMak
You can use the ZIPFROMLIST command for this:
or:
You can use the ZIPFROMLIST command for this:
Code: Select all
[em_zipfromlist1]
cmd=ZIPFROMLIST -o
param="%O.zip" %UF
menu=Pack selected elements to archive with name of file under cursor - in same folder
button=wcmicons.dll,30
Code: Select all
[em_zipfromlist2]
cmd=ZIPFROMLIST -o
param="%B.zip" %UF
menu=Pack selected elements to archive with name of current dir - in same folder
button=wcmicons.dll,30
License #524 (1994)
Danish Total Commander Translator
TC 11.00b5 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.4.1.1022 (x64)
TC 3.42 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.00b5 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.4.1.1022 (x64)
TC 3.42 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Re: [b4] How to cm_PackFiles into current dir with parameters?
Working version with cm_PackFiles:
Code: Select all
[em_PackFiles1]
cmd=cm_PackFiles /D1R1A0E="rar"
param=T="%O"
menu=Pack selected elements to RAR-archive with name of file under cursor in same folder
button=wcmicons.dll,30
Code: Select all
[em_PackFiles2]
cmd=cm_PackFiles /D1R1A0E="rar"
param=T="%B"
menu=Pack selected elements to rar-archive with name of current dir in same folder
button=wcmicons.dll,30
Re: [b4] How to cm_PackFiles into current dir with parameters?
For assortment, button:
Code: Select all
TOTALCMD#BAR#DATA
cm_MatchSrc,cm_PackFiles /G,cm_FocusTrg,cm_GotoPreviousDir,cm_FocusTrg
WCMICONS.DLL,30
Pack in same folder
Re: [b4] How to cm_PackFiles into current dir with parameters?
hm... it looks complicated, I would like without such quests 

sorry for my poor english
OS: Win10 TC: 11 x64
OS: Win10 TC: 11 x64
- petermad
- Power Member
- Posts: 12995
- Joined: 2003-02-05, 20:24 UTC
- Location: Valsted, Denmark
- Contact:
Re: [b4] How to cm_PackFiles into current dir with parameters?
Works with rar, but if I replace rar with zip the archives are made without extension.rus73 wrote: ↑2023-05-26, 03:18 UTC Working version with cm_PackFiles:Code: Select all
[em_PackFiles1] cmd=cm_PackFiles /D1R1A0E="rar" param=T="%O" menu=Pack selected elements to RAR-archive with name of file under cursor in same folder button=wcmicons.dll,30
Code: Select all
[em_PackFiles2] cmd=cm_PackFiles /D1R1A0E="rar" param=T="%B" menu=Pack selected elements to rar-archive with name of current dir in same folder button=wcmicons.dll,30
But these works with zip too:
Code: Select all
[em_PackFiles1]
cmd=cm_PackFiles /D1R1A0E="zip"
param=T="%O.zip"
menu=Pack selected elements to ZIP-archive with name of file under cursor in same folder
button=wcmicons.dll,30
Code: Select all
[em_PackFiles2]
cmd=cm_PackFiles /D1R1A0E="zip"
param=T="%B.zip"
menu=Pack selected elements to ZIP-archive with name of current dir in same folder
button=wcmicons.dll,30
Actually basically this works:
Code: Select all
[em_PackFiles3]
cmd=cm_PackFiles /
param=T="%O.zip"
menu=Pack selected elements to ZIP-archive with name of file under cursor in same folder
button=wcmicons.dll,30
License #524 (1994)
Danish Total Commander Translator
TC 11.00b5 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.4.1.1022 (x64)
TC 3.42 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.00b5 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.4.1.1022 (x64)
TC 3.42 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
- ghisler(Author)
- Site Admin
- Posts: 45369
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: [b4] How to cm_PackFiles into current dir with parameters?
Please wait for beta 5, then cm_packfiles will support options in the parameters field too.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: [b4] How to cm_PackFiles into current dir with parameters?
Thank you. We are waiting for the final version.