GetFolderSize

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
Dominic_Fichera
Pro Scripter
Posts: 82
Joined: Mon Mar 24, 2014 12:15 pm

GetFolderSize

Post by Dominic_Fichera » Tue Aug 04, 2015 5:52 am

Hey guys,

Is there any kind of code to get the size of a folder? I know there's one for individual files, but what about an entire folder? Or alternatively, will I need to branch into my non-existant knowledge of VB? haha :lol:

Thanks in advance as always,

Dominic

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: GetFolderSize

Post by Marcus Tettmar » Tue Aug 04, 2015 9:20 am

There's a little VBScript snippet for doing this at:
viewtopic.php?f=2&t=8696
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Dominic_Fichera
Pro Scripter
Posts: 82
Joined: Mon Mar 24, 2014 12:15 pm

Re: GetFolderSize

Post by Dominic_Fichera » Tue Aug 04, 2015 9:27 am

Hey Marcus,

Thanks for your reply :)

Is that the right link? The page doesn't have anything about checking folder size/vb script. It's about REGEX and counting periods in a string.

Thanks! :)

Dominic

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: GetFolderSize

Post by Marcus Tettmar » Tue Aug 04, 2015 9:32 am

Oops. Not sure how that happened. Correct link is:
viewtopic.php?f=2&t=8692
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Dominic_Fichera
Pro Scripter
Posts: 82
Joined: Mon Mar 24, 2014 12:15 pm

Re: GetFolderSize

Post by Dominic_Fichera » Tue Aug 04, 2015 9:43 am

That's perfect! :) Thanks Marcus!

I know it's "Off-Thread", but any chance of an inbuilt FolderSize function in the future?

Dominic

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts