I want to clarify, does the Public folder name change across Windows languages ?
If so, how to read its path?.
Thank for help.
How to read C:\Users\Public\ folder path in Windows language ?
How to read C:\Users\Public\ folder path in Windows language ?
PB 5.x + 6.x + Win10. Feel the ...Pure... Power.
- NicTheQuick
- Addict

- Posts: 1527
- Joined: Sun Jun 22, 2003 7:43 pm
- Location: Germany, Saarbrücken
- Contact:
Re: How to read C:\Users\Public\ folder path in Windows language ?
If I remember it right since Windows 10 paths like this and also "Program Files" are the same in all languages and are only translated in the Explorer and file choosers.
The english grammar is freeware, you can use it freely - But it's not Open Source, i.e. you can not change it or publish it in altered way.
Re: How to read C:\Users\Public\ folder path in Windows language ?
yes and no,wrote: I want to clarify, does the Public folder name change across Windows languages ?
If so, how to read its path?.
It doesn't change depending on the language, but it can change because Windows isn't necessarily on C:
So always use system variables
Code: Select all
Debug GetEnvironmentVariable("public")You can also filter with findstr (/i = ignore case)
Code: Select all
C:\>set | findstr /i public
PUBLIC=C:\Users\PublicRe: How to read C:\Users\Public\ folder path in Windows language ?
You can also use SHGetKnownFolderPath with the FOLDERID_Public parameter.
https://learn.microsoft.com/en-us/windo ... folderpath
https://learn.microsoft.com/en-us/windo ... folderpath
Re: How to read C:\Users\Public\ folder path in Windows language ?
There is one more folder I forgot to mention:
C:\Users\Default\
How to read it ?
C:\Users\Default\
How to read it ?
PB 5.x + 6.x + Win10. Feel the ...Pure... Power.
Re: How to read C:\Users\Public\ folder path in Windows language ?
hdt888 wrote: Tue Sep 10, 2024 2:58 pm There is one more folder I forgot to mention:
C:\Users\Default\
How to read it ?
Code: Select all
Default_UserDir$ = GetPathPart( GetEnvironmentVariable("userprofile") ) + "Default\"
Debug Default_UserDir$Re: How to read C:\Users\Public\ folder path in Windows language ?
Also a method to destroy the computer by fiddling around in folders where you don't have to look.
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive


