Page 1 of 1

Add new constant for GetUserDirectory

Posted: Wed May 27, 2020 8:15 am
by Marc56us
Can you add new constant for GetUserDirectory() target to %LOCALAPPDATA%

PB_Directory_ProgramData link to <user>\Roaming folder (as local or network access)
sometime we need to link to <user>\Local folder to stay on physical machine

This folder can be accessed by GetEnvironmentVariable("LOCALAPPDATA"), but it would make sense to add it to GetUserDirectory()

Code: Select all

Debug GetUserDirectory(#PB_Directory_ProgramData)
Debug GetEnvironmentVariable("LOCALAPPDATA")
Name i.e #PB_Directory_LocalAppData To stay close to the name of the system variable ? (echo %LocalAppData%)

Thanks
:wink:

Re: Add new constant for GetUserDirectory

Posted: Sat May 30, 2020 6:21 am
by DoubleDutch
+1

Re: Add new constant for GetUserDirectory

Posted: Sat May 30, 2020 11:19 pm
by le_magn
+1