Top.Mail.Ru
Мастера DELPHI, Delphi programming community Титульная страница Поиск, карта сайта Написать письмо 
| Новости | Поиск | FAQ | Статьи | Книги | Новости VCL |
| Форумы ЧАТ | Орешник | KOL и MCK |
Форумы -» Основная («Начинающим»)/ Базы / WinAPI / Компоненты / Сети / Media / Игры / Corba и COM / KOL / FreePascal / .Net / Прочее / RSDN.ORG

« предыдущая ветвь | форум | следующая ветвь »

Works with WINRAR or WINZIP ... [D6, Win95/98, Win2k]


KidMan ©   (2002-10-15 22:55:00) 

Приветствую Мастеров!
Подскажите пожалуйста как через shellexecute запустит архиватор рар или зип чтобы он автоматически архивировал определенный каталог и с конкретным именем создаваемого архива указанного программой...

Заранее всем спасибо!

P.S. Знаете... а ВЫ мне ВСЕ очень помогли и не раз... Спасибо огромное!


dim-   (2002-10-16 03:36:00) [1]

Ошибочка ,надо без www:
http://dimeda.by.ru/files/ArhIsh6.zip


dim-   (2002-10-16 03:34:00) [2]

Если интересно, можешь посмотреть исходники http://www.dimeda.by.ru/files/ArhIsh6.zipТам архиватор Rar запускается с параметрами


Znaika   (2002-10-16 00:54:00) [3]

Так ведь непонятно - что непонятно.
Shell.. запускает внешнюю программу, которой является Ваш любой архиватор.Запускается он есс-но с нужными Вам параметрами и известными Вам еще со времен DOS или Win95.
Пример что-ли нужен ?


KidMan   (2002-10-16 00:33:00) [4]

И все? (((


KidMan   (2002-10-16 00:05:00) [5]

Холодность вашего отношения к пониманиманию страданий других просто поражает более чем "Титаник" банальный айсбег! ;))


Jeer   (2002-10-15 23:59:00) [6]

А что Вам тогда не понятно ?
ShellEx.. запускает ВНЕШНЮЮ программу.
С параметрами.
Мужайтесь.


KidMan   (2002-10-15 23:47:00) [7]

Господи батенька...ну зачем мне командная строка то....? Я такие весЧи читал еще в вин95... (((


Jeer   (2002-10-15 23:38:00) [8]

Вот дела..
А из коммандной строки слабо запустить с параметром ?


RAR 2.05 Copyright (c) 1993-98 Eugene Roshal 21 September 1998
Registered to TSerg

Usage: RAR <command> -<switch 1> -<switch N> <archive> <files...>
<@listfiles...> <path_to_extract\>
Specify empty listfile name to read names from stdin

<Commands>
a Add files to archive u Update files in archive
f Freshen files in archive m[f] Move to archive [files only]
x Extract files with full path e Extract files to current directory
d Delete files from archive cw Write archive comment to file
t Test archive files p Print file to stdout
c Add archive comment cf Add files comment
k Lock archive s Convert archive to SFX
r Repair archive rr[N] Add data recovery record
l[t] List archive [technical] v[t] Verbosely list archive [technical]

<Switches>
rr[N] Add data recovery record mm[f] Multimedia compression [force]
o+ Overwrite existing files o- Do not overwrite existing files
y Assume Yes on all queries sfx Create SFX archives
cl Convert names to lower case cu Convert names to upper case
f Freshen files u Update files
c- Disable comments show ed Do not add empty directories
ep Exclude paths from names ep1 Exclude base dir from names
tk Keep original archive time tl Set archive time to latest file
s[e,<N>] Create solid archive
s- Disable solid archiving
r Recurse subdirectories
r0 Recurse subdirectories for wildcard names only
cfg- Disable read configuration
md<size> Set dictionary size in Kb (64,128,256,512,1024 or A,B,C,D,E)
z<file> Read archive comment from file
x<file> Exclude specified file
x@<list> Exclude files in specified list file
x@ Read file names to exclude from stdin
v Create volumes with size autodetection
v<size>[k,b] Create volumes with size=<size>*1000 [*1024, *1]
vd Erase disk contents before creating volume
p<password> Set password
p- Do not query password
kb Keep broken extracted files
w<path> Assign work directory
m<0..5> Set compression level (0-store...3-default...5-maximal)
e<attr> Set file exclude attributes
av Put authenticity verification (registered versions only)
av- Disable AV check
ds Disable name sort for solid archive
ilog Log errors to file (registered versions only)
isnd Enable sound
ierr Send all messages to stderr
inul Disable all messages
ri<P>[:<S>] Set priority (0-default,1-min..15-max) and sleep time in ms
ac Clear Archive attribute after compression
ao Add files with Archive attribute set


KidMan   (2002-10-15 23:08:00) [9]

И как же определить эти ключи именно для рар или зип?

Заранее благодарю!


Jeer   (2002-10-15 23:03:00) [10]

Ключи определяются конкретным архиватором.
Примеров ShellExecute масса.
Поиск...


Наверх

Титульная страница Поиск, карта сайта Написать письмо