how to determine user's home directory

P

pstrotmann

Guest
Hi,

I want to write a dataset into the user's home directory.
Is there a possibility to determine its absolute pathName ?

thanks
peter
 

dave

Administrator
Staff member
Have you tried

System.getProperty("user.home")

e.g.

def usersHomeDirectory = System.getProperty("user.home")
 
Top