LispWorks User Guide and Reference Manual > 40 The SYSTEM Package

NextPrevUpTopContentsIndex

get-user-profile-directory

Function
Summary

Gets the root of the user's profile on a Windows NT-based system.

Package

system

Signature

get-user-profile-directory => result

Values

result

A directory pathname naming the path, or nil .

Description

The function get-user-profile-directory obtains the path to the current user's profile folder on a Windows NT-based system (including Windows 2000, Windows XP and Windows Vista). get-user-profile-directory is implemented only on Microsoft Windows.

result names the root of the profile directory.

Note that the default path for each user's profile may differ between versions of the operating system.

Compatibility note

In LispWorks 5.0 and previous versions, get-user-profile-directory returns a string.

Example

On Windows XP:

(sys:get-user-profile-directory)
=>
#P"C:/Documents and Settings/fred/"

On Windows 98 SE:

(sys:get-user-profile-directory)
=>
nil
See also

get-folder-path


LispWorks User Guide and Reference Manual - 22 Dec 2009

NextPrevUpTopContentsIndex