get a list of files with winrar command line
Asked Answered
H

2

5

I want to get a list of files and preferably uncompressed file size via winrar command line. How do i do this? and how do i do this with a password? From the doc it looks like i use -pPASSWORD

Hokum answered 6/11, 2009 at 2:6 Comment(0)
P
8

Winrar comes with Rar.exe command-line tool. You could use it in the following format:

Rar.exe l -pPASSWORD archive.rar

Postexilian answered 6/11, 2009 at 2:29 Comment(1)
Great :D I had no idea what that meant in the documentation. But i know this could be done! :)Hokum
R
4

The commands l (lower L) and lb (LB) are available in rar.exe and unrar.exe (but not in Winrar.exe)

The command l lists a lot of other informations beside the filename (compression-rate, date, ...) if you just need the filenames then use lb instead of l:

unrar.exe lb -pPASSWORD archive.rar >files.txt
Resh answered 14/1, 2013 at 10:43 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.