2010-01-14 18:34:05 +0000 2010-01-14 18:34:05 +0000
49
49
Advertisement

7-压缩和从命令行解压缩

Advertisement

我想用命令行7-Zip来解压一个文件夹。

我有一个文件,比如说example.zip,我想把文件的内容解压到一个叫example的文件夹里。

我需要哪些命令来完成这个任务?

Advertisement
Advertisement

答案 (3)

64
64
64
2010-01-14 18:37:54 +0000

7z x example.zip -oexample

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

<Commands>
...
  x: eXtract files with full paths
<Switches>
...
  -o{Directory}: set Output directory

编辑:

7z x *.zip -o*

extracts all *.zip archives to subfolders with names of these archives.

奇怪的是,我不得不去完整的帮助文件中找到这个例子;它没有显示为7z /?

4
4
4
2010-01-15 02:25:28 +0000

对于 p7zip :

7za e file.7z
3
Advertisement
3
3
2010-09-09 18:54:34 +0000
Advertisement

递归提取单个文件,或从存档中选择一组文件到当前文件夹。

7za.exe e art.archive -ir!*Art.jpg
Advertisement

相关问题

7
5
15
4
8
Advertisement
Advertisement