Sign in to follow this  
Followers 0
MattX

File Get Size

3 posts in this topic

Can anyone tell me why this is returning a zero value ? Is it because some of the folders are hidden before you get to the actual file ?

$size = FileGetSize(@UserName & '\Local Settings\Application Data\Microsoft\Outlook\outlook.ost')
MsgBox(0, "Size:", $size)

Share this post


Link to post
Share on other sites



Try this:

$size = FileGetSize(@AppDataDir & "\Microsoft\Outlook\outlook.ost")
MsgBox(0, "Size:", $size)

#include <ByteMe.au3>

Share this post


Link to post
Share on other sites

Thanks - I used: @UserProfileDir which also worked.

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