there is a funtion in Omnis Studio called
To retrieve the current user’s home directory under windows it would be
Do getenv(“userprofile”) Returns lcUserProfile
where “userprofile” is the name of the corresponding environemt variable.
The function also works on Mac OS but I don’t know the variable name there.
G… should know.