Recent

Author Topic: Determine application Roaming Directory  (Read 2025 times)

dietmar

  • Full Member
  • ***
  • Posts: 170
Determine application Roaming Directory
« on: July 25, 2021, 04:40:23 pm »
Hi,

I want to determine the "Roaming" directory of my app, e.g. C:\User\xxx\Roaming.
Unfortunately, GetAppConfigDir(false) returns the "Local" directory and with parameter TRUE, C:\ProgramData\... is returned.

I appreciate your help!

Regards
Dietmar
Lazarus 2.2.0RC1 with FPC 3.2.2 (32 Bit) on Windows10 (64Bit)

ASerge

  • Hero Member
  • *****
  • Posts: 2212
Re: Determine application Roaming Directory
« Reply #1 on: July 25, 2021, 04:49:39 pm »
I want to determine the "Roaming" directory of my app, e.g. C:\User\xxx\Roaming.
WinDirs.GetWindowsSpecialDir(CSIDL_APPDATA);

Interestingly, in WinCE, SysUtils.GetAppConfigDir(False) return exactly Roaming folder.

 

TinyPortal © 2005-2018