Report of folders which occupy the most space on hd?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
highend
Posts: 14954
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Report of folders which occupy the most space on hd?

Post by highend »

Hi,

I stumbled upon the script command folderreport but missed an easy way to let it create a .csv file that only lists folders with their current size (so that it would be possible to sort them in Excel afterwards).

Is there a different, easy way to identify and report the folder structure of a drive which lists the most space occupying folders top-down?

Regards,
Highend
One of my scripts helped you out? Please donate via Paypal

admin
Site Admin
Posts: 66361
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Report of folders which occupy the most space on hd?

Post by admin »

Show folder sizes in the list, then do something like this:

Code: Select all

text report("{fullname} > {size}<crlf>", 1);

highend
Posts: 14954
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Report of folders which occupy the most space on hd?

Post by highend »

Thanks for the suggestion but that isn't the solution I'm looking for :)

Drawbacks: No recursion, only works for folders that got selected before, will also show files (and not only folders).

Maybe the scriptcommand folderreport could be enhanced with an additional option to display sizes for flat folder trees?

Regards,
Highend
One of my scripts helped you out? Please donate via Paypal

admin
Site Admin
Posts: 66361
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Report of folders which occupy the most space on hd?

Post by admin »

I see. I have an idea... wait for next version...

highend
Posts: 14954
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Report of folders which occupy the most space on hd?

Post by highend »

I see. I have an idea... wait for next version...
Great. Ty!
One of my scripts helped you out? Please donate via Paypal

admin
Site Admin
Posts: 66361
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Report of folders which occupy the most space on hd?

Post by admin »

In v9.90.0404 you can do any of these:

Code: Select all

::text folderreport("dirs:{name} ({size} bytes)", "r", "C:\Temp");
::text folderreport("tree:{name} ({size} bytes)", "r", "C:\Temp");

Post Reply