Jump to content

Getting The Size Of A Directory

Recommended Posts


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.


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..

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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...