B4J Question How to get user document folder

moore_it

Well-Known Member
Licensed User
Longtime User
Yes c:\users\documents\ ecc ...

if i don't know the user how i do to get the path ?

Thanks
 
Upvote 0

stevel05

Expert
Licensed User
Longtime User
GetSystemProperty("user.home","NF") will get the users home directory.
 
Upvote 0

stevel05

Expert
Licensed User
Longtime User
It's a default reply for the GetSystemSetting call in case the provided attribute is not valid. You could pass an empty string if you prefer.

GetSystemProperty("user.home","")
 
Upvote 0
Top