2010-01-14 18:34:05 +0000 2010-01-14 18:34:05 +0000
← ソフトウェアユーザー

7-Zipとコマンドラインからの解凍

スコア 49
Advertisement

コマンドラインの7-Zipを使ってフォルダを解凍したいと思っています。

私はexample.zipというファイルを持っていて、そのファイルの内容をexampleというフォルダに解凍したいと思っています。

このために必要なコマンドは何ですか?

Advertisement
Advertisement

回答 (3)

解決策が見つかりました

スコア 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.

奇妙なことに、この例を見つけるために完全なヘルプファイルに行かなければなりませんでした。

Advertisement
Advertisement
スコア 3
2010-09-09 18:54:34 +0000
Advertisement

アーカイブから1つのファイル、または選択したファイルのセットを再帰的にカレントフォルダに抽出します。

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