7-Zipコマンドラインでいろいろ

めもめも。

testディレクトリをtest.zipアーカイブに圧縮


7z.exe a test.zip test

testディレクトリを書庫形式にZIPを使ってtest.zipアーカイブに圧縮


7z.exe a -tzip test.zip test
1つ上のコマンドと意味はいっしょ

test.zipアーカイブをtest_zipディレクトリに展開


7z.exe x test.zip -otest_zip
-oオプション使わないと、test.zipがあるカレントディレクトリに展開されます

testディレクトリを1GB毎に区切ってtest.zipアーカイブに圧縮


7z.exe a test.zip test -v1g
結果として1GB単位にtest.zip.001 test.zip.002 ...とファイルが作成されます

test.zip.001 test.zip.002 ...アーカイブをtest_zipディレクトリに展開


7z.exe x test.zip.001 -otest_zip
最初の.001を選べば、それに続く連番ファイルを自動的に連結し、展開します