Total Commander Forum Index Total Commander
Форум поддержки пользователей Total Commander
Сайты: Все о Total Commander | Totalcmd.net | Ghisler.com | RU.TCKB
 
 RulesRules   SearchSearch   FAQFAQ   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Single Post  Topic: Упаковка файлов одной кнопкой по шаблону 
Author Message
sa



PostPosted: Wed Jan 03, 2024 12:13    Post subject: Reply with quote

Lnk wrote:
lst, чтоб кнопка выделяла все в каталоге и архивировала в этот формат

Code:
TOTALCMD#BAR#DATA
cm_SelectAllBoth,em_PackFilesLst

wcmicons.dll,30
Упаковать всё в lst-файл в другую панель


-1
Пользовательская команда в usercmd.ini:
Code:
[em_PackFilesLst]
cmd=cm_PackFiles
param=/GE="lst"

Lnk wrote:
множеством вариантов архивирования

Используйте параметры для команды cm_PackFiles:
Quote:
All the options shown in the dialog box can be passed as parameters (starting with a slash). Each of the checkbox options takes an optional parameter 1 or 0.
T="target name": path and file name of the archive. Use T="" or T="." to pack to source directory with default name, or T="c:\path\." to pack to given path with default name.
D: Also pack path names (only recursed)
R: Recursively pack subdirectories
S: Multiple disk archive (ZIP, ARJ, RAR, ACE)
M: Move to archive
X: Create self extracting archive
O0..4,7,8: Overwrite options, numbers as in the F5 copy dialog box. 5,6 and 9 are not supported.
A: Create separate archives, one per selected file/dir
B: Leave out base directory when packing folders
C: Encrypt
P="password": provide password (needs /C option)
G: Go: Start copying immediately
E="extension": packer type as shown in the pack dialog
Z0..10: ZIP compression rate, 0=stored, 10=Deflate64. Only used for ZIP, GZ and TGZ (the latter two 1..9 only)
View user's profile Send private message


Powered by phpBB © 2001, 2005 phpBB Group