7-Zip 命令行版本 for windows

上一篇 / 下一篇  2007-01-31 21:57:31

下载:http://www.7-zip.org/zh-cn/download.html

  这是一个使用命令压缩和解压文件的7-zip,从官方网站下载它的zip包,因为windowsXP/2003可以直接将zip视为特殊的文件夹,所以不用安装winzip就可以打开,然后将里面的7za.exe文件拷贝到C:/windows/ 目录下。这样你就可以通过命令行在任一目录下调用7-zip程序,解压压缩文件,就像在linux上使用tar。

  在命令行中输入7za,就会显示7za的帮助:

  7-Zip (A) 4.42 Copyright (c) 1999-2006 Igor Pavlov 2006-05-14

Usage: 7za <command> [<switches>...] <archive_name> [<file_names>...]
    [<@listfiles...>]

<Commands>
a: Add files to archive
d: Delete files from archive
e: Extract files from archive (without using directory names)
l: List contents of archive
t: Test integrity of archive
u: Update files to archive
x: eXtract files with full paths
<Switches>
-ai[r[-|0]]{@listfile|!wildcard}: Include archives
-ax[r[-|0]]{@listfile|!wildcard}: eXclude archives
-bd: Disable percentage indicator
-i[r[-|0]]{@listfile|!wildcard}: Include filenames
-m{Parameters}: set compression Method
-o{Directory}: set Output directory
-p{Password}: set Password
-r[-|0]: Recurse subdirectories
-scs{UTF-8 | WIN | DOS}: set charset for list files
-sfx[{name}]: Create SFX archive
-si[{name}]: read data from stdin
-slt: show technical information for l (List) command
-so: write data to stdout
-t{Type}: Set type of archive
-v{Size}[b|k|m|g]: Create volumes
-u[-][p#][q#][r#][x#][y#][z#][!newArchiveName]: Update options
-w[{path}]: assign Work directory. Empty path means a temporary directory
-x[r[-|0]]]{@listfile|!wildcard}: eXclude filenames
-y: assume Yes on all queries

所以,简单的,可以使用:
  7za e -otmp zip.zip
将同目录下的zip.zip文件解压到tmp文件夹中。

  7za a zip.7z tmp
将tmp添加到zip.7z压缩包中。

TAG:

 

评分:0

我来说两句

显示全部

:loveliness: :handshake :victory: :funk: :time: :kiss: :call: :hug: :lol :'( :Q :L ;P :$ :P :o :@ :D :( :)

我的栏目

日历

« 2008-09-08  
 123456
78910111213
14151617181920
21222324252627
282930    

数据统计

  • 访问量: 37264
  • 日志数: 95
  • 图片数: 1
  • 书签数: 1
  • 建立时间: 2006-08-21
  • 更新时间: 2007-02-24

RSS订阅

Open Toolbar