Thomas Grossen
Guest
|
Hi,
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. |
|
Dmitry Kostochko
Add-in Express team
Posts: 2887
Joined: 2004-04-05
|
Hi Thomas,
See the code below:
uses Windows, SHFolder, Dialogs;
var
Path: array [0..MAX_PATH] of Char;
begin
if SHGetFolderPath(0, CSIDL_APPDATA, 0, 0, Path) = S_OK then
ShowMessage(Path);
end;
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.
|
|
Thomas Grossen
Guest
|
Perfect!
Thank you again... :) |
|