Link to home
Start Free TrialLog in
Avatar of nonubik
nonubik

asked on

Outlook .pst files location

I would like to find out the location of the Outlook .pst files programatically. The version that I'm interested in are Office 2000 and above.

The only thing I found out browsing my registry was that they (for my Office 2003) seems to be under some kind of GUID keys, like:

HKCU\software\microsoft\windows nt\currentversion\windows messaging subsystem\profiles\outlook

There are some GUID like keys. Some of them have a "001e6700" value which has as its data the .pst file full path.

As I said before I would like to know if this is the way to  find out the location and what are the locations for the other versions of Office.

10x
Avatar of sunray_2003
sunray_2003
Flag of United States of America image

Hi nonubik,

Generally it is found here

Look for *.pst file searching in hidden folders
Mostly it would be found in
C:\Documents and Settings\{your profile name}\Local Settings\Application Data\Microsoft\Outlook

Well you need to make sure where you have placed your PST as the above location is only by default and you can change it to a different location in your hard disk


SR..
Avatar of nonubik
nonubik

ASKER

Hi SR,

For the above link: I looked into, too, before asking, but the answer refers only to a backuping tool (not interested in).

>Well you need to make sure where you have placed your PST as the above location is only by default and you can change it to a different location in your hard disk

That's the problem.
I develop an application (C++) that detects Outlook mail folders and then tries to scan them (for something..). Because of this, the detection part has to be OS independent, Office version independent (I mean for 2000 and above) and so on. The user may aswell decide to add some .pst files that are not in the usual C:\Documents and Settings\{user profile name}\Local Settings\Application Data\Microsoft\Outlook.

Hence the many details and points :)
nonubik,
> that detects Outlook mail folders and then tries to scan them

Outlook emails are all stored in PST file (outlook.pst) unlike OE where each mail folder is stored in a seperate mail folder.

How difficult is for your application to scan the system for outlook.pst file ?
Avatar of nonubik

ASKER

1.If a file name is outlook.pst, this does not mean it's a Outlook mail file.
2.Outlook->File->Data File Management->Add-> ...  can add .pst files from any location, having any filename (not outlook.pst)

..I thought these things were clear. This is not an user-side kind of question.
nonubik,

What kind of account are you using , pop3 or imap or exchange server

The reason i said outlook.pst is that, that is the general file containing emails in a general outlook environment and you need to have some name for your program to find the location.
or can your program not just search for *.pst files ?
Avatar of nonubik

ASKER

I would like to find out the location of the Outlook .pst files programatically. The version that I'm interested in are Office 2000 and above.

In EVERY kind of environment, in EVERY kind of location.
NOT generaly.
Avatar of nonubik

ASKER

Like the OE mail files are to be found in
 key = HKCU\Identities\{guid}\software\microsoft\outlook express\5.0
 value = Store root
 data = WHAT I AM INTERESTED IN

for OE 5 and 6
nonubik,

Have you checked the following HKCU\Software\Microsoft\Office?

I believe the 9.0 subfolder is for Office 2000, 10.0 is for 2002 etc.
Avatar of nonubik

ASKER

I believe, too.

But have you read the question?
Avatar of nonubik

ASKER

Ok, I found some description about the regkeys on
http://66.102.11.104/search?q=cache:rKwE-nf7GdMJ:cameron-webb.com/blog/archive/2004/05/06/167.aspx+pr_pst_path&hl=en

But didin't seem to match for Office 2003.

(rectification: in my original question "for my Office 2003" must be read "for my Office 2002")
Avatar of nonubik

ASKER

Ok, I found out.

For 2003 there is the UNICODE version of the "001e6700" value, "001f6700" that holds an UNICODE path for the .pst files
ASKER CERTIFIED SOLUTION
Avatar of RomMod
RomMod

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial