Jump to content
Sign in to follow this  
MattX

File Get Size

Recommended Posts

MattX

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
sleepydvdr

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
MattX

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  

×