Add new constant for GetUserDirectory
Posted: Wed May 27, 2020 8:15 am
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()
Name i.e #PB_Directory_LocalAppData To stay close to the name of the system variable ? (echo %LocalAppData%)
Thanks

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")
Thanks
