Add new constant for GetUserDirectory

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Marc56us
Addict
Addict
Posts: 1477
Joined: Sat Feb 08, 2014 3:26 pm

Add new constant for GetUserDirectory

Post 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:
User avatar
DoubleDutch
Addict
Addict
Posts: 3219
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Re: Add new constant for GetUserDirectory

Post by DoubleDutch »

+1
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
le_magn
Enthusiast
Enthusiast
Posts: 133
Joined: Wed Aug 24, 2005 12:11 pm
Location: Italia
Contact:

Re: Add new constant for GetUserDirectory

Post by le_magn »

+1
Image
Post Reply