Archive file

  • Thread starter Thread starter Tony WONG
  • Start date Start date
T

Tony WONG

i wish to write a VBA to check the archive file size at each Outlook
startup.

i cannot locate the object of the archive file.

anyone knows about it. Thanks a lot.

tony
 
There is no size property you could use to find the size of a folder or PST
file from Outlook macro code.

You'd be better off if you know the file path to that PST file to use the
Win32 API or Windows Scripting or some other interface to read the file size
from the file system.
 
Thank you for your clarification.

i also think so.

The difficulties to me is that different workstations save pst file at
different places.

anyway, thanks a lot.
 
A very sneaky method is to parse out the PST file path from the StoreID
property.

If you look at Item.Parent.StoreID or Folder.StoreID, using a tool such as
OutlookSpy or MFCMAPI it's a binary array. If you view it as text you will
see the file path and name of the PST file embedded in that StoreID.
 
Back
Top