# When would the Windows environment variable be HOMEPATH=\

set HOME
HOMEDRIVE=C:
HOMEPATH=\
USERDOMAIN=user01
USERPROFILE=C:\Documents and Settings\user01

Microsoft Windows XP [Version 5.1.2600]


On the Windows boxes I've tested until now, USERPROFILE=%HOMEDRIVE%%HOMEPATH%

When I originallydecided to go with HOMEDRIVE/HOMEPATH, I read an article that said it was the safest way to go.

What would be causing HOMEPATH to be /?

If commands are needed to be executed on this machine, please put them in the form of a batch file. Thank you.

-
It looks to me like your install of Windows is setup in a non standard way. All three Windows ( XP x2 and 7) in my home show the standard config. Home at the root of c: seems dangerous to me. –  tomjedrz Nov 18 '09 at 3:24
While having the home reflect the root of the share isn't typical, it's not necessarily improperly configured. Applications should not rely on those environment variables. I can't think of any reason (off of the top of my head) why having home at the root of C: would be dangerous. –  Stemen Nov 18 '09 at 16:01