Avatar of Software Engineer
Software Engineer
 asked on

Windows Server 2008 R2: %HOMEDRIVE%%HOMEPATH% Incorrect

Hello:

Normally, the location of %HOMEDRIVE%%HOMEPATH% "equals" a user's C:\Users\[User ID]\AppData\Local directory.

But, on this Windows Server 2008 R2 Enterprise box, the directory is actually on the D drive--not the C drive.

Is there another set of variables that I can refer to, other than %HOMEDRIVE%%HOMEPATH%?

Thank you!

John
CWindows Server 2008

Avatar of undefined
Last Comment
David Johnson, CD

8/22/2022 - Mon
Emmanuel Adebayo

Your request is very vague, please can you expand more.

regards
ASKER CERTIFIED SOLUTION
David Johnson, CD

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Software Engineer

ASKER
Exactly, David!  :)  I want %userprofile%\appdata\local.

So, would %USERPROFILE% be what I need?  Is that the proper substitution used for %HOMEDRIVE%%HOMEPATH%?

John
David Johnson, CD

works for me, test in your environment
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck