beta.blog

Getting file attributes from Rar archives

by on Jan.01, 2024, under News

For rar archives we can use a combination of various flags in order to verbosely list archive contents. The documentation states the following:

v[t[a],b] Verbosely list archive contents [technical[all],bare]

Let’s evaluate the output of these commands:

rar v 01.rar

RAR 6.20 beta 3   Copyright (c) 1993-2022 Alexander Roshal   15 Dec 2022
Trial version             Type 'rar -?' for help

Archive: 01.rar
Details: RAR 4

 Attributes      Size    Packed Ratio    Date    Time   Checksum  Name
----------- ---------  -------- ----- ---------- -----  --------  ----
    ..A....    672738    304981  45%  2001-12-07 10:54  65B16866  2000 AD.xm
    ..A....       611       412  67%  2005-01-08 00:04  7B139DCA  !info!.txt
----------- ---------  -------- ----- ---------- -----  --------  ----
               673349    305393  45%                              2
rar vt 01.rar

RAR 6.20 beta 3   Copyright (c) 1993-2022 Alexander Roshal   15 Dec 2022
Trial version             Type 'rar -?' for help

Archive: 01.rar
Details: RAR 4

        Name: 2000 AD.xm
        Type: File
        Size: 672738
 Packed size: 304981
       Ratio: 45%
       mtime: 2001-12-07 10:54:28,000000000
  Attributes: ..A....
       CRC32: 65B16866
     Host OS: Windows
 Compression: RAR 1.5(v29) -m5 -md=1M

        Name: !info!.txt
        Type: File
        Size: 611
 Packed size: 412
       Ratio: 67%
       mtime: 2005-01-08 00:04:14,000000000
  Attributes: ..A....
       CRC32: 7B139DCA
     Host OS: Windows
 Compression: RAR 1.5(v29) -m3 -md=128K
rar vta 01.rar

RAR 6.20 beta 3   Copyright (c) 1993-2022 Alexander Roshal   15 Dec 2022
Trial version             Type 'rar -?' for help

Archive: 01.rar
Details: RAR 4

        Name: 2000 AD.xm
        Type: File
        Size: 672738
 Packed size: 304981
       Ratio: 45%
       mtime: 2001-12-07 10:54:28,000000000
  Attributes: ..A....
       CRC32: 65B16866
     Host OS: Windows
 Compression: RAR 1.5(v29) -m5 -md=1M

        Name: !info!.txt
        Type: File
        Size: 611
 Packed size: 412
       Ratio: 67%
       mtime: 2005-01-08 00:04:14,000000000
  Attributes: ..A....
       CRC32: 7B139DCA
     Host OS: Windows
 Compression: RAR 1.5(v29) -m3 -md=128K

     Service: EOF
rar vb 01.rar

2000 AD.xm
!info!.txt

Leave a Reply

*

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!