Jump to content

Recommended Posts

Posted

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

Posted

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

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
×
×
  • Create New...