The path is C:\Documents and Settings\<windows logon>\Application
Data\Microsoft\Outlook\<profile_name>.nk2.
You can query the Win32 API call SHGetFolderPath to get the path to
\Application Data. From there you can concatenate the rest of the name up to
the profile name. The usage for SHGetFolderPath is in the MSDN library.
The profile name is the hard part. You'd have to use Extended MAPI and
IOlkAccountManager using C++ or Delphi. For VBA/VB you would need to use the
Redemption.RDOSession.ProfileName property. Redemption is a 3rd party
library at
www.dimastr.com/redemption