Link to home
Start Free TrialLog in
Avatar of EdgeMan
EdgeMan

asked on

Microsoft Outlook - Get Currently Loaded Profile Name

How do I get the currently loaded Outlook profile name?

I know how to login to a certain profile, but if another profile is already running, how do I get the name?

Using Delphi 6 Enterprise, Outlook 2000 on Windows 98.
ASKER CERTIFIED SOLUTION
Avatar of Hypoviax
Hypoviax
Flag of Australia image

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
Avatar of EdgeMan
EdgeMan

ASKER

Sorry, I could not find anything there...
Hi Edgeman,

Did you find the stuff?

Ill have another look if you want

Regards,

Hypoviax
Have a look here:

HKEY_CURRENT_USER\Software\Microsoft\Office\8.0\Outlook\

You may also be able to extract the profile name from a number of settings files:

Copied from http://www.aaauctionservice.com/Toms/OUTLOOK.htm :
<<<
Outcmd.dat - This file stores toolbar and menu settings.

     <Profile Name>.fav - This is your Favorites file that includes the settings for the Outlook bar.

     <Profile Name>.htm - This file stores the HTML AutoSignature.      

     <Profile Name>.rtf - This file stores the Rich Text Format AutoSignature.

     <Profile Name>.txt - This file stores the Plain Text format AutoSignature.NOTE: If you use Word as your e-mail editor, signatures are stored in the Normal.dot as Autotext entries. This file should be backed up as well.
>>>>

Do a search for *.fav to find the location then you can use the function:

extractfilename(pchar(filepath)) to get the filename i.e <Profile Name>.fav. Assign this to a variable i.e profilename. Then use the copy function to get the profilename:

copy(profilename,0,length(profilename)-4)

Use -4 since you want to get rid of the '.fav'

Hope this helps and thanks for the points

Regards,

Hypoviax