The simple solution for you is to set the HOME environment variable to
something useful for your system. Windows usually sets USERPROFILE to
your local profile directory and if you are using "Roaming profiles"
it may set HOMEDRIVE and HOMEPATH to the network drive and directory
path for your roaming data. It is likely that you want HOME set to a
local directory eg: C:\Users\YourLogin
From the documentation on environment variables:
%HOMEDRIVE% System. Returns which local workstation drive letter is
connected to the user's home directory. This variable is set based on
the value of the home directory. The user's home directory is
specified in Local Users and Groups.
%HOMEPATH% System. Returns the full path of the user's home directory.
This variable is set based on the value of the home directory. The
user's home directory is specified in Local Users and Groups.
%USERPROFILE% Local. Returns the location of the profile for the current user.
It looks like we should add a check for the existence of all such
variables before using them although I don't believe I've ever
encountered a system that failed to have these setup already. Could
just be a weird XP64 thing.