Hello,
I have an application running on terminal server. I would like to create a database to the default user folder. Can someone provide an example to get the user folder?
Thank you,
User folder
- xProgrammer
- Posts: 464
- Joined: Tue May 16, 2006 7:47 am
- Location: Australia
Hi cdmmaui
If the user's home directory is stored in an environment variable (in Linux it is in the HOME environment variable which in a shell script would be referenced as $HOME) then you could use the GetEnv() function along the following lines:
Hope that might help
xProgrammer
If the user's home directory is stored in an environment variable (in Linux it is in the HOME environment variable which in a shell script would be referenced as $HOME) then you could use the GetEnv() function along the following lines:
Code: Select all
sHomeDirectory := GetEnv( "HOME" )
xProgrammer