Code: Select all
[em_PackFilesCurrentDir]
cmd=cm_PackFiles
param=T="%N.zip"
Not the same as Ctrkl+Alt+F5, but something.
Moderators: Hacker, petermad, Stefan2, white
Code: Select all
[em_PackFilesCurrentDir]
cmd=cm_PackFiles
param=T="%N.zip"
any changes for beta 5 ?KozakMak wrote: 2023-05-25, 06:12 UTC I want pack selected files\folders into current dir (in the same panel). Give me example how do that with parameters?
The parameter %B0 does not add a directory name here. Only on a button and in start menu.ghisler(Author) wrote:or for a hotkey:
Do you have created an own UserDefinedCommand in usercmd.ini for that?sa16 wrote: 2023-06-02, 12:43 UTCThe parameter %B0 does not add a directory name here. Only on a button and in start menu.ghisler(Author) wrote:or for a hotkey:
Or am I wrong?
Thank you! This method is known to me.Stefan2 wrote:To that em_command you can assigned a hotkey...
It only adds a name of file. %B is the name of the parent directory, so if the parent directory is named "Parent", the suggested archive name will be "Parent.ZIP". When you don't specify a target directory, Total Commander will pack to the same directory.The parameter %B0 does not add a directory name here.
%B, %B0..%B9
adds a directory name from the path (including the relative path from branch view, or the search result).
%B or %B0 = parent directory, %B1 = grandparent directory etc.
Code: Select all
cmd=cm_PackFiles
Param=/T="%B0.ZIP"
Code: Select all
[Shortcuts]
C+W=cm_Packfiles
C+W_params=/T="%B.ZIP"
Code: Select all
[Shortcuts]
C+W=ZIPFROMLIST
C+W_params=-o %B.ZIP %WF
Confirmed fixed in TC 11.00b6. Thanks!History.txt wrote:04.06.23 Fixed: Internal commands like cm_PackFiles didn't expand parameters like %N in hotkeys (32/64)