Stránka 1 z 1

Komprimace složek pomocí "makecab.exe"

Napsal: úte 4. led 2005, 23:08
od Shit
Lze nějak docílit, aby makecab.exe z Widlí uměl i komprimaci složek? (soubory umí). Nemyslím tím použití jiných programů (třeba Powerarchiver atd.), myslím tím samotný "makecab" - musí to nějak jít, .... jak? ... třeba při upgradu winů si "zacabuje" celou složku původních widlí. Parametr /? nepomáhá :(

Napsal: stř 5. led 2005, 09:01
od howard
Pouzij cabarc.

Microsoft (R) Cabinet Tool - Version 1.00
Copyright (c) Microsoft Corp 1996. All rights reserved.

Usage: CABARC [<options>] <command> <cabfile> [<filelist...>] [dest_dir]

Commands:
L List contents of cabinet (e.g. cabarc l test.cab)
N Create new cabinet (e.g. cabarc n test.cab *.c app.mak *.h)
X Extract file(s) from cabinet (e.g. cabarc x test.cab foo*.c)

Options:
-c Confirm files to be operated on
-o When extracting, overwrite without asking for confirmation
-m Set compression type [MSZIP | NONE], (default is MSZIP)
-p Preserve path names (absolute paths not allowed)
-P Strip specified prefix from files when added
-r Recurse into subdirectories when adding files (see -p also)
-s Reserve space in cabinet for signing (e.g. -s 6144 reserves 6K bytes)
-i Set cabinet set ID when creating cabinets (default is 0)
-- Stop option parsing

Notes
-----
When creating a cabinet, the plus sign (+) may be used as a filename
to force a folder boundary; e.g. cabarc n test.cab *.c test.h + *.bmp

When extracting files to disk, the <dest_dir>, if provided, must end in
a backslash; e.g. cabarc x test.cab bar*.cpp *.h d:\test\

The -P (strip prefix) option can be used to strip out path information
e.g. cabarc -r -p -P myproj\ a test.cab myproj\balloon\*.*
The -P option can be used multiple times to strip out multiple paths


http://www.google.com/search?hl=en&lr=& ... tnG=Search

Napsal: stř 5. led 2005, 18:32
od Shit
howard píše:Pouzij cabarc.

Microsoft (R) Cabinet Tool - Version 1.00
Copyright (c) Microsoft Corp 1996. All rights reserved.
Nj. , ale to jsou jiný programy....Mě se spíš jedná o ten "makecab"... :oops:

Napsal: stř 5. led 2005, 20:19
od Jiri Drak
Jestli chces tak si stahni tohle: http://support.microsoft.com/?id=310618
Je tam i podrobny popis prace s makecab pres definicni soubory, ale je to pekna pakarna, protoze klasicke veci jako dir\*.* to neumi.

Napsal: stř 5. led 2005, 22:48
od Shit
Thx. To píše i user "howard". O tom vím, ale jak to dělaj WXP třeba při upgradu z W9x ? Důležitý složky si samy "zacabujou"... asi nedokumentovaná funkce :sad: "cabarc" tam nikde není. ( V práci se teď nudím, tak "zkoumám" :-D ).

Napsal: stř 5. led 2005, 23:42
od howard
Shit píše:... asi nedokumentovaná funkce :sad:
Tomu bych se vubec nedivil.

Sdelil sem zde to, co jsem vycetl.

Napsal: stř 5. led 2005, 23:53
od Manji
jak že není? Na CD XP-čok je adresár Support/Tools/Support.cab .Tam je cabarc.exe