Unit 'sysutils' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#rtl]


Returns the current user's home directory.


Source position: osutilsh.inc line 47

function GetUserDir: string;


GetUserDir returns the home directory of the current user. On Unix-like systems (that includes Mac OS X), this is the value of the HOME environment variable. On Windows, this is the PROFILE special folder. On all other platforms, the application installation directory is returned.

If non-empty, it contains a trailing path delimiter.

See also



Return the appropriate directory for the application's configuration files.

Documentation generated on: Jul 24 2023