FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour User folder
Posts: 708
Joined: Fri Oct 28, 2005 09:53 AM
User folder
Posted: Fri Jun 06, 2008 01:45 AM

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,

*~*~*~*~*~*~*~*~*~*
Darrell Ortiz
CDM Software Solutions, Inc.
https://www.cdmsoft.com
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
User folder
Posted: Fri Jun 06, 2008 02:54 PM

cAppPath := cFilePath( GetModuleFileName( GetInstance( ) ) )
Regards,
Otto

Posts: 464
Joined: Tue May 16, 2006 07:47 AM
User folder
Posted: Sat Jun 07, 2008 07:33 AM
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:

sHomeDirectory := GetEnv( "HOME" )


Hope that might help
xProgrammer

Continue the discussion