分割ボリューム 7zip アーカイブ内のファイルのリストを取得する

分割ボリューム 7zip アーカイブ内のファイルのリストを取得する

私は次のコマンドを使用して、Windows 10 でマルチパート (各 1G) 7zip アーカイブ (基本的にはドキュメント領域の完全バックアップ) を作成しています。

7z a -r -v1g -bb -y \path\to\zips\xyzzy.7z .

これで、約 38 個の 1G ファイルが無事に作成されました。しかし、その後アーカイブ内のすべてのファイルのリストを取得したいのですが、その方法がわかりません。コマンド:

7z l xyzzy.7z.001

エラーを返します:

7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21

Scanning the drive for archives:
1 file, 1073741824 bytes (1024 MiB)

Listing archive: \somewhere\xyzzy.7z.001

--
Path = \somewhere\xyzzy.7z.001
Type = Split
Physical Size = 1073741824
Volumes = 1
Total Physical Size = 1073741824

   Date      Time    Attr         Size   Compressed  Name
------------------- ----- ------------ ------------  ------------------------
                    .....   1073741824   1073741824  xyzzy.7z
------------------- ----- ------------ ------------  ------------------------
                            1073741824   1073741824  1 files
----------
Path = xyzzy.7z
Open ERROR: Can not open the file as [7z] archive

Errors: 1

したがって、基礎となる7zファイルはファイル内で表示されているように見えます.7z.001が、有効なアーカイブではないというエラーが表示されます。

また、 で試してみましたが、-tsplitエラーは削除されましたが、そのファイルの内容を確認することなく、 としてのみ内容が表示されましたxyzzy.7z。つまり、出力は上記と同一ですが、最終行は で終わるものになります1 files

なぜそうなるのでしょうか? コマンドラインパラメータが間違っているのでしょうか? 分割アーカイブからファイルリストを取得するにはどうすればよいですか?

答え1

7-zip ファイルへのパスにドライブ文字を使用するようにしてください。例:

7z l C:\somewhere\xyzzy.7z.001

バージョン 16.02 のバグのようです。次のテストを実行しました。

E:\temp>7za l \temp\archive.7z.001

7-Zip (a) [32] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21

Scanning the drive for archives:
1 file, 1048576 bytes (1024 KiB)

Listing archive: \temp\archive.7z.001

--
Path = \temp\archive.7z.001
Type = Split
Physical Size = 1048576
Volumes = 1
Total Physical Size = 1048576

   Date      Time    Attr         Size   Compressed  Name
------------------- ----- ------------ ------------  ------------------------
                    .....      1048576      1048576  archive.7z
------------------- ----- ------------ ------------  ------------------------
                               1048576      1048576  1 files
----------
Path = archive.7z
Open ERROR: Can not open the file as [7z] archive

Errors: 1

E:\temp>7za l E:\temp\archive.7z.001

7-Zip (a) [32] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21

Scanning the drive for archives:
1 file, 1048576 bytes (1024 KiB)

Listing archive: E:\temp\archive.7z.001

--
Path = E:\temp\archive.7z.001
Type = Split
Physical Size = 1048576
Volumes = 6
Total Physical Size = 5533143
----
Path = archive.7z
Size = 5533143
--
Path = archive.7z
Type = 7z
Physical Size = 5533143
Headers Size = 170
Method = LZMA2:6m
Solid = -
Blocks = 1

   Date      Time    Attr         Size   Compressed  Name
------------------- ----- ------------ ------------  ------------------------
2013-03-13 09:23:44 ....A      6010800      5532973  gotingeno-davideosendacommon.pdf
------------------- ----- ------------ ------------  ------------------------
2013-03-13 09:23:44            6010800      5532973  1 files

------------------- ----- ------------ ------------  ------------------------
2013-03-13 09:23:44            6010800      5532973  1 files

Archives: 1
Volumes: 6
Total archives size: 5533143

E:\temp>7za l archive.7z.001

7-Zip (a) [32] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21

Scanning the drive for archives:
1 file, 1048576 bytes (1024 KiB)

Listing archive: archive.7z.001

--
Path = archive.7z.001
Type = Split
Physical Size = 1048576
Volumes = 6
Total Physical Size = 5533143
----
Path = archive.7z
Size = 5533143
--
Path = archive.7z
Type = 7z
Physical Size = 5533143
Headers Size = 170
Method = LZMA2:6m
Solid = -
Blocks = 1

   Date      Time    Attr         Size   Compressed  Name
------------------- ----- ------------ ------------  ------------------------
2013-03-13 09:23:44 ....A      6010800      5532973  gotingeno-davideosendacommon.pdf
------------------- ----- ------------ ------------  ------------------------
2013-03-13 09:23:44            6010800      5532973  1 files

------------------- ----- ------------ ------------  ------------------------
2013-03-13 09:23:44            6010800      5532973  1 files

Archives: 1
Volumes: 6
Total archives size: 5533143

関連情報