zoukankan      html  css  js  c++  java
  • 编程经验:.cab文件制作过程(cabarc.exe)

    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

  • 相关阅读:
    Python 类中方法的内部变量,命名加'self.'变成 self.xxx 和不加直接 xxx 的区别
    用foreach遍历 datagridView 指定列所有的内容
    treeView1.SelectedNode.Level
    YES NO 上一个 下一个
    正则 单词全字匹配查找 reg 边界查找 精确匹配 只匹配字符 不含连续的字符
    抓取2个字符串中间的字符串
    sqlite 60000行 插入到数据库只用不到2秒
    将多行文本以单行的格式保存起来 读和写 ini
    将秒转换成时间格式
    richtextbox Ctrl+V只粘贴纯文本格式
  • 原文地址:https://www.cnblogs.com/Gemgin/p/3136293.html
Copyright © 2011-2022 走看看