A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Get PST size



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old September 11th 07, 03:40 AM posted to microsoft.public.outlook.program_addins
KAKA
external usenet poster
 
Posts: 29
Default 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.
Ads
  #2  
Old September 11th 07, 03:56 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default 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.


  #3  
Old September 12th 07, 03:30 AM posted to microsoft.public.outlook.program_addins
KAKA
external usenet poster
 
Posts: 29
Default 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.



  #4  
Old September 12th 07, 03:46 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default 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.


  #5  
Old September 12th 07, 04:16 PM posted to microsoft.public.outlook.program_addins
KAKA
external usenet poster
 
Posts: 29
Default 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.



 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Delete based on Attachment Size (Item.Size)... [email protected] Outlook and VBA 3 August 27th 07 05:30 PM
Max PST size? Mitch Tulloch Outlook - General Queries 13 November 14th 06 03:38 PM
size filter Ike Outlook Express 1 October 9th 06 04:28 PM
Font size stuck on size 12 when creating new message. Rob153 Outlook Express 13 April 4th 06 02:29 PM
Sent Items.dbx size Spot Outlook Express 9 January 12th 06 07:00 PM


All times are GMT +1. The time now is 12:52 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-2025 Outlook Banter.
The comments are property of their posters.