Next Prev Up Top Contents Index

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 string 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 NT, Windows 2000 and Windows XP). get-user-profile-directory is implemented only on 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.

Example

On Windows NT4.0:

(sys:get-user-profile-directory)
=>
"C:\\WINNT\\Profiles\\fred"

On Windows 98 SE:

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

get-folder-path


LispWorks Reference Manual - 25 Jul 2003

Next Prev Up Top Contents Index