Obtener una lista de archivos en un archivo 7zip de volumen dividido

Obtener una lista de archivos en un archivo 7zip de volumen dividido

Estoy usando el siguiente comando para crear un archivo 7zip de varias partes (cada 1G) en Windows 10 (básicamente una copia de seguridad completa de mi área de documentos):

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

Esto crea con éxito alrededor de 38 archivos 1G para mí. Sin embargo, quería obtener una lista de todos los archivos en el archivo después y no sé cómo hacerlo. El comando:

7z l xyzzy.7z.001

devuelve un error:

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

Entonces, el archivo subyacente 7zparece visible dentro del .7z.001archivo, pero se queja de que no es un archivo válido.

También lo probé con el -tsplitcual eliminó el error, pero solo entonces muestra el contenido xyzzy.7zsin profundizar en ese archivo para ver su contenido. En otras palabras, la salida es idéntica a la anterior pero la línea final es la que termina 1 files.

¿Por qué es este el caso? ¿Me equivoqué en los parámetros de la línea de comandos? ¿Cómo obtengo una lista de archivos del archivo dividido?

Respuesta1

Intente utilizar la letra de unidad en la ruta al archivo 7-zip. Por ejemplo:

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

Parece ser un error en la versión 16.02. Hice las siguientes pruebas:

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

información relacionada