From Environment Variables
Jump to: navigation, search

HomePath environment variable returns the complete path of the user's home directory, as defined in the user's account properties within the domain. HomePath environment variable is based on the value of the home directory. If the home directory is a UNC, this variable will will return the path (example: "\<path>") to the user's home directory using the mapped drives as a root. IF the home directory uses a local path, it will return the drive letter of that local path. [1]

echo %HomePath%

Default value

The default value of HomePath environment variable depends on the operating system. In Windows XP the default value of HomePath environment variable is \Documents and Settings\{username}, while on Windows Vista & Windows 7 it is \Users\{username}.[2]


  1. Environment Variable Reference
  2. Wikipedia

See also

AllUsersProfile | AppData | CD | ClientName | CmdCmdLine | CmdExtVersion | CommonProgramFiles | ComputerName | ComSpec | Date | ErrorLevel | HomeDrive | HomePath | LocalAppData | LogonServer | Number Of Processors | OS | Path | PathExt | Processor Architecture | Processor Identifier | Processor Level | Processor Revision | ProgramFiles | Prompt | Random | SessionName | SystemDrive | SystemRoot | Temp | Time | Tmp | UserDnsDomain | UserDomain | UserName | UserProfile | WinDir

Personal tools

Google AdSense