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, Windows Vista and Windows 7).
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.
In LispWorks 5.0 and previous versions,
get-user-profile-directory
returns a string.
(sys:get-user-profile-directory)
=>
#P"C:/Users/dubya/"
(sys:get-user-profile-directory)
=>
#P"C:/Documents and Settings/dubya/"
(sys:get-user-profile-directory)
=>
nil
LispWorks User Guide and Reference Manual - 21 Dec 2011