关于Applet打成.cab包工具的介绍与使用
1、MS的CabSDK,DOS下的CAB打包工具
Microsoft Cabinet Software Development Kit
http://support.microsoft.com/default.aspx?scid=kb%3ben-us%3b310618
可以从这里下载
http://download.microsoft.com/download/platformsdk/cab/2.0/w98nt42kmexp/en-us/cabsdk.exe

安装后运行CABARC.EXE来操作
具体命令如下:
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 , 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

2、WinCAB,图形界面的CAB打包工具,直接进行拖拉操作
http://lumumba.uhasselt.be/takis/WinCAB/
可以从这里下载
http://beta.luc.ac.be/takis/cgi-bin/wincab.zip
安装后,运行WinCAB.exe即可,操作差不多同压缩软件的操作

不过你先要把MS的MakeCab.exe拷贝到安装的目录下,才能运行的,MakeCab.exe在系统的目录下可以找到的,eg:Winnt\System32下。
WinCAB这个软件不错,我在用它!

评论
pekkle 2008-07-15
CABARC能不能打包目录,如:文件跟目录一起打包。
cab格式的怎么解压?直接用rar解压?
发表评论

您还没有登录,请登录后发表评论

YuLimin
  • 浏览: 624035 次
  • 性别: Icon_minigender_1
  • 来自: 福建莆田@广州
  • 详细资料
搜索本博客
我的相册
Dd13d72e-22a7-34de-84bf-9981c3ea2524-thumb
孔明球
共 168 张
存档
最新评论