How to get the Current User application Data path

Add-in Express™ Support Service
That's what is more important than anything else

How to get the Current User application Data path
Thomas Grossen



I need to get the users application data path (like "C:\Documents and Settings\user_name\Application Data") to store some information.

Is it correct to read the registry key "APPDATA" in "HKEY_CURRENT_USER\Volatile Environment", or is there another way?

Thank you.
Posted 06 Dec, 2006 12:19:08 Top
Dmitry Kostochko

Add-in Express team

Posts: 2875
Joined: 2004-04-05
Hi Thomas,

See the code below:

uses Windows, SHFolder, Dialogs;

  Path: array [0..MAX_PATH] of Char;
  if SHGetFolderPath(0, CSIDL_APPDATA, 0, 0, Path) = S_OK then

P.S. Note that we take up your forum requests in the order we receive them.
Besides, it may take us some time to investigate your issue. Please be sure we will let you know as soon as the best possible solution is found.

Posted 07 Dec, 2006 04:31:56 Top
Thomas Grossen



Thank you again... :)
Posted 07 Dec, 2006 07:30:39 Top