Sign in to follow this  
Followers 0
kalayaan

Getting The Size Of A Directory

3 posts in this topic

Hi,

I'm sure there is a way to easily get the size of a directory's contents. DriveGetSize seems to get the total for a whole drive even if I put a folder path.

Don't laugh but the temporary solution I came up with was to open a hidden window of the folder in explorer and use statusbargettext.

Is there another way? Thanks guys.

Kala

Share this post


Link to post
Share on other sites



I guess you could do a FileFindFirstFile and FileFindNextFile,

combined with FileGetSize with every file and then do some easy math..

Maybe there is a easier way to do it, but it sounds like it could work..

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0