You could also use Extedned MAPI in C++ or Delphi to read the path from the
profile data section.
Note that the full path to the PST file is embedded in the store entry id
(in OutlookSpy, click go to an IMAP store, click IMsgStore, select
PR_STORE_ENTRYID property, click the button next to the Value edit box). You
could hack it, but the entry id format is not documented and is subject to
change in any version.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"af2604" <af2604@yahoo.it> wrote in message
news:Oel5Q8hyIHA.5820@TK2MSFTNGP04.phx.gbl...
> Ok, thank you, is this the only solution ?
>
> Dmitry Streblechenko ha scritto:
>> The bug is in Outlook.
>> <plug>Redemption, on the other hand, will work correctly.And not not just
>> in Outlook 2007:
>>
>> skPstAnsi = 1
>> skPstUnicode = 2
>> skPrimaryExchangeMailbox = 3
>> skDelegateExchangeMailbox = 4
>> skPublicFolders = 5
>> set Session = CreateObject("Redemption.RDOSession")
>> Session.MAPIOBJECT = Me.Application.Session.MAPIOBJECT
>> for each Store in Session.Stores
>> if (Store.StoreKind = skPstAnsi) or (Store.StoreKind = skPstUnicode)
>> Then
>> Debug.Print Store.PstPath
>> ElseIf (Store.StoreKind = skPrimaryExchangeMailbox) or (Store.StoreKind
>> = skDelegateExchangeMailbox) or (Store.StoreKind = skPublicFolders) Then
>> Debug.Print Store.ServerDN
>> End If
>> next
>>
>> </plug>
>>
08 JunWhere is the bug ?.af2604
08 Jun\ Re: Where is the bug ?.Dmitry Streblechenko
09 Jun   \ Re: Where is the bug ?.af2604
09 Jun      \ Re: Where is the bug ?.Dmitry Streblechenko
09 Jun         \ Re: Where is the bug ?.af2604
All times are in (US) Eastern Daylight Time (GMT -4:00)