BeZIP(CUI)
ZIPファイル内ファイル展開

ZIPファイル内ファイル展開

[概要]
ZIPファイル内の指定されたファイルのみを展開(解凍)します。

[コマンドイメージ]
ZIP /O "@ファイル名" "@展開先フォルダ名" @s [@e]↓

@s:開始リスト番号
@e:終了リスト番号(省略:開始リスト番号のみ)


[サンプル]
例えば、以下のようなZIPファイルがあった場合、

>zip /l test.zipreturn
 [NO]  [ファイル名(ディレクトリ情報を含む)]
  001  1.txt
  002  readme.txt
  003  logo.bmp
  004  BeZIP.exe
  005  lbcomb.dll
  006  lhadll.dll
  007  sbcomb.dll
  008  ubcomb.dll
  009  beinstall.exe
  010  beinstall.INF
  011  BeZIP.chm
  012  BeZIPC.chm
  013  BeZIPC.exe
  014  CreateOwnMelt.exe
  015  readme.zip
  016  regsvr32.exe
  017  term.dat
  018  testfolder/beinstall.exe
  019  testfolder/readme.zip
  020  testfolder/term.dat

例えば、以下のような入力すると、

>zip /o test.zip testext 2 4return
Uncompressed : readme.txt
Uncompressed : logo.bmp
Uncompressed : BeZIP.exe
3 Files
とリスト番号の2番から4番までのファイルを展開(解凍)します。

また、以下のような入力すると、

>zip /o test.zip testext 2return
Uncompressed : readme.txt
1 Files
とリスト番号の2番のみのファイルを展開(解凍)します。

>zip /o test.zip testextreturn
構文エラー
 /o test.zip testext
とリスト番号を指定しないとエラーになることに注意してください。



<< ZIPコマンドオーバービュー