HomeDrive

From Environment Variables
Jump to: navigation, search

HomeDrive environment variable returns drive letter on the local computer that is connected to the user's home directory. The drive letter to use is defined in the user's account properties within the domain. This environment variable is based on the value of the home directory. If the home directory is UNC, this variable will be populated with the drive letter that should be mapped to the UNC. If the home directory is a local path, this variable will be populated with the drive letter of the local path. [1]

echo %HomeDrive%
C:

Default value

The default value of HomeDrive environment variable is in most cases SystemDrive which in turn is C:.[1]

References

  1. 1.0 1.1 Environment Variable Reference

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
Namespaces

Variants
Actions
Navigation
Catalogue
Google AdSense
Tools