Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Add-ins for Outlook (http://www.outlookbanter.com/add-ins-outlook/)
-   -   Get PST size (http://www.outlookbanter.com/add-ins-outlook/56579-get-pst-size.html)

KAKA September 11th 07 02:40 AM

Get PST size
 
How can I get current pst file size in outlook? Is there a parameter in
objInfoStore can get the size directly, not by FSO ?
Thanks.

Ken Slovak - [MVP - Outlook] September 11th 07 02:56 PM

Get PST size
 
Nothing is exposed in the object model. Reading the file size using FSO or
the Win32 API's or whatever is the best way to get overall size of a PST
file.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"KAKA" wrote in message
...
How can I get current pst file size in outlook? Is there a parameter in
objInfoStore can get the size directly, not by FSO ?
Thanks.



KAKA September 12th 07 02:30 AM

Get PST size
 
Thanks for your reply.
Cause the particularity of PST file. If divide the pst file in outlook, the
file size of the old pst file is same as before dividing except compress
manually.
So the file size may not be the actual size.


"Ken Slovak - [MVP - Outlook]" wrote:

Nothing is exposed in the object model. Reading the file size using FSO or
the Win32 API's or whatever is the best way to get overall size of a PST
file.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"KAKA" wrote in message
...
How can I get current pst file size in outlook? Is there a parameter in
objInfoStore can get the size directly, not by FSO ?
Thanks.




Ken Slovak - [MVP - Outlook] September 12th 07 02:46 PM

Get PST size
 
The file size is the size, it also includes any "whitespace" that's there
until you do compress it. If you want the size of the actual folders in the
PST file that's a different story. In that case you'd have to do something
like counting every message in a folder and getting each one's size and then
realizing that there are also hidden items in folders plus folders that
aren't visible to you in the UI that also make up part of the size of a PST
file.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"KAKA" wrote in message
...
Thanks for your reply.
Cause the particularity of PST file. If divide the pst file in outlook,
the
file size of the old pst file is same as before dividing except compress
manually.
So the file size may not be the actual size.



KAKA September 12th 07 03:16 PM

Get PST size
 
hehe !
If that, it will take more than one minute to count all the mail size.
It is not acceptable.
Thanks for your reply, the case is closed.

"Ken Slovak - [MVP - Outlook]" wrote:

The file size is the size, it also includes any "whitespace" that's there
until you do compress it. If you want the size of the actual folders in the
PST file that's a different story. In that case you'd have to do something
like counting every message in a folder and getting each one's size and then
realizing that there are also hidden items in folders plus folders that
aren't visible to you in the UI that also make up part of the size of a PST
file.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"KAKA" wrote in message
...
Thanks for your reply.
Cause the particularity of PST file. If divide the pst file in outlook,
the
file size of the old pst file is same as before dividing except compress
manually.
So the file size may not be the actual size.





All times are GMT +1. The time now is 12:22 PM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com