Any way to retrieve archive extracted size via scripting?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
eil
Posts: 1609
Joined: 13 Jan 2011 19:44

Any way to retrieve archive extracted size via scripting?

Post by eil »

As title asks. Specifically my target info about extracted size for zip, rar and 7z.
Lets say archive is 500Mb but when extracted it will be 850Mb = is there a way to get this "extracted size" info via XY scripting?
Win 7 SP1 x64 100% 1366x768

jupe
Posts: 2749
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: Any way to retrieve archive extracted size via scripting?

Post by jupe »

You could use a runret of 7z.exe l filename.ext and parse the output, the total size is on the last line.

Post Reply