编程经验:.cab文件制作过程(cabarc.exe)

时间:2022-08-23 17:20:56

Microsoft Windows XP [版本 5.1.2600]
(C) 版权所有 1985-2001 Microsoft Corp.

C:\Documents and Settings\Administrator>cd Local Settings

C:\Documents and Settings\Administrator\Local Settings>cd temp

C:\Documents and Settings\Administrator\Local Settings\Temp>cd bin

C:\Documents and Settings\Administrator\Local Settings\Temp\BIN>cabarc.exe

Microsoft (R) Cabinet Tool - Version 1.00.0601 (03/18/97)
Copyright (c) Microsoft Corp 1996-1997. All rights reserved.

Usage: CABARC [options] command cabfile [@list] [files] [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 [LZX:<15..21>|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)

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


C:\Documents and Settings\Administrator\Local Settings\Temp\BIN>cabarc.exe -m LI
Z:21 -r N weboffice.cab "E:\TeamProgram\深圳市团市委OA系统\技术文档\weboffice_v6
.0.4.2reg\weboffice.*"

Microsoft (R) Cabinet Tool - Version 1.00.0601 (03/18/97)
Copyright (c) Microsoft Corp 1996-1997. All rights reserved.

-m option supports LZX:<15..21>, MSZIP or NONE

C:\Documents and Settings\Administrator\Local Settings\Temp\BIN>MSZIP
'MSZIP' 不是内部或外部命令,也不是可运行的程序
或批处理文件。

C:\Documents and Settings\Administrator\Local Settings\Temp\BIN>cabarc.exe -m  -
r N weboffice.cab "E:\TeamProgram\深圳市团市委OA系统\技术文档\weboffice_v6.0.4.2
reg\weboffice.*"

Microsoft (R) Cabinet Tool - Version 1.00.0601 (03/18/97)
Copyright (c) Microsoft Corp 1996-1997. All rights reserved.

-m option supports LZX:<15..21>, MSZIP or NONE

C:\Documents and Settings\Administrator\Local Settings\Temp\BIN>NONe
'NONe' 不是内部或外部命令,也不是可运行的程序
或批处理文件。

C:\Documents and Settings\Administrator\Local Settings\Temp\BIN>cabarc.exe -m  -
r N weboffice.cab "E:\TeamProgram\深圳市团市委OA系统\技术文档\weboffice\*"

Microsoft (R) Cabinet Tool - Version 1.00.0601 (03/18/97)
Copyright (c) Microsoft Corp 1996-1997. All rights reserved.

-m option supports LZX:<15..21>, MSZIP or NONE

C:\Documents and Settings\Administrator\Local Settings\Temp\BIN>cabarc.exe -m LZ
X:MSZIP  -r N weboffice.cab "E:\TeamProgram\深圳市团市委OA系统\技术文档\weboffic
e\*"

Microsoft (R) Cabinet Tool - Version 1.00.0601 (03/18/97)
Copyright (c) Microsoft Corp 1996-1997. All rights reserved.

compression memory must be in range 15..21

C:\Documents and Settings\Administrator\Local Settings\Temp\BIN>cabarc.exe -m LZ
X:21  -r N weboffice.cab "E:\TeamProgram\深圳市团市委OA系统\技术文档\weboffice\*
"

Microsoft (R) Cabinet Tool - Version 1.00.0601 (03/18/97)
Copyright (c) Microsoft Corp 1996-1997. All rights reserved.

Creating new cabinet 'weboffice.cab' with compression 'LZX:21':
  -- adding E:\TeamProgram\深圳市团市委OA系统\技术文档\weboffice\weboffice.inf
  -- adding E:\TeamProgram\深圳市团市委OA系统\技术文档\weboffice\weboffice.ocx

Completed successfully

C:\Documents and Settings\Administrator\Local Settings\Temp\BIN>

我最近在玩和讯财经微博,很方便,很实用。
一句话,一张图,随时随地与我分享理财心得与亲历见闻。
点击以下链接激活,来和我一起玩吧!
http://t.hexun.com/active.aspx?InviteCode=vgHnLwTTuTjrgTw%2fP7b6%2fA%3d%3d