7zip命令行用法总结
作者 佚名
来源 批处理
浏览
发布时间 2013-07-09
Usage: 7za <command> [<switches>...] <archive_name> [<file_names>...] [<@listfiles...>] 1. "a",添加文件 7z a -t7z files.7z *.txt 2. "d", 删除文件 7z d archive.zip *.bak -r 从zip文件中删除所有的*.bak文件 3. "e", 解压缩 7z e archive.zip 4. "l", 列出文件 7z l archive.zip 5. "t", 测试完整性 7z t archive.zip *.doc -r 6. "u", 更新 7z u archive.zip *.d 7. "x", 与e相同,但保留全路径 8. "m", 指定优化级别 Compression switch: -mx0 What it means: Don''t compress at all. Is called "copy mode." Compression switch: -mx1 What it means: Very low compression. It is called "fastest" mode. Compression switch: -mx3 What it means: Fast compression mode. Will set various parameters automatically. Compression switch: -mx5 What it means: Same as above, but "normal." Compression switch: -mx7 What it means: "maximum" compression. Compression switch: -mx9 What it means: "ultra" compression. (You probably want to use this.) 9. "-m"选项: Switch: -mfb Function: Specifies # of fast bytes. Sometimes help with very "sparse" files. Don''t bother. Switch: -mpass Function: Number of passes for deflate compression. Don''t bother with this. Automatically set with levels. Switch: -md Function: Specifies dictionary size. Automatically set, so don''t bother. Switch: -mmt Function: Enable multithreading. Use if: you have quad-core and a really huge archive. Specify "on" or "off". This may be enabled by default; check the help file. 10. "-t"选项 指定压缩文件类型 Type switch: -t7z Format: 7Z Example filename: archive.7z (default option) Type switch: -tgzip Format: GZIP Example filename: archive.gzip archive.gz Type switch: -tzip Format: ZIP Example filename: archive.zip (very compatible) Type switch: -tbzip2 Format: BZIP2 Example filename: archive.bzip2 Type switch: -ttar Format: TAR Example filename: tarball.tar (UNIX and Linux) Type switch: -tiso Format: ISO Example filename: image.iso Type switch: -tudf Format: UDF Example filename: disk.udf 7z a -tiso archive.iso 7z a -tudf archive.udf 7z: executable name a: add to archive -tiso or -tudf: format of archive to create archive.iso or archive.udf: name of archive to create 10. 硬压缩 Switch: -ms=on Function: Enable solid mode. This is the default so you won''t often need this. Switch: -ms=off Function: Disable solid mode. This is useful when you need to update individual files. Will reduce compression ratios normally. 11. "-p"设定密码 7z a pw.7z *.txt -pSECRET 12. 其它选项: Switch: -ssc Function: Specify case-sensitive mode. Useful for going between Linux and Windows. Default: -ssc- on Windows (insensitive) Default: -scc on Linux (sensitive) Switch: -ssw Function: Compress locked files. Use if: you have problems with opening files. Switch: -w Function: Set working directory. Use when you want to specify temp folders. Switch: -aoa Overwrite all destination files. Switch: -aos Skip over existing files without overwriting. Use this for files where the earliest version is most important. Switch: -aou Avoid name |
凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢! |
你可能对下面的文章感兴趣
上一篇: 20种常用的DOS命令小结下一篇: QQ多帐号自动登录批处理脚本
关于7zip命令行用法总结的所有评论