Drive Space Usage GUI

3 posts in this topic

spudw2k 151

Just a simple GUI to show where drive space is used (directory sizes). Yes...I know there are a plethora of tools that do this, but this is an exercise and may be useful in cases where I am not able to use those tools.

Still in it's early stages. Comments and critiques welcome.

Question to the community. Is my StringRegExReplace the most efficient way to do what I am doing (filtering out the [byte count] tags)?

Thanks to Yashield for the example of which I tailored my WM_NOTIFY func

Share this post

Link to post

Share on other sites

spudw2k 151

Thanks ptrex; ideas welcome. I was thinking of incorporating a few of those features (icons, content menu) but I dig the Export idea. I also didn't think about a refresh button before, but that would be very cool. Thinking about performance, do you think a refresh of say only the the folders that are visible (expanded) are refreshed or do you think and entire refresh off all the inspected folders? Perhaps a "re-scan" of all inspected folders wouldn't be too bad. I'm fairly pleased with how I came up with the mechanism to continue calculating folder sizes with Adlib because I never thought about it the way I coded it before.

edit:

I found a potential flaw. I am using the [] chars to display the folder size info, but I just realized that those are valid characters for a foldername. The way my regex is coded it will not work (calculate) with a folder that has a [ in the name. Looking into another char I can use, but I really liked the look of the brackets. I don't recall ever seeing a foldername with those chars in it, but just the fact that it "could" happen bugs me