You should leave %HOMEDRIVE%%HOMEPATH% pointing towards the root of your user profile directory like for eg. (C:\Users\Marlum). This is the location of you user profile, NTUSER.DAT. Even if you move your Documents, etc directories to D:\Users\Marlun, the profile will always stay on C:\Users\Marlun. Some apps and tools may try to locate your NTUSER.DAT by using the %HOMEDRIVE%%HOMEPATH% variables
What you do, change the “Start in:” field of the “Command Prompt” shortcut from %HOMEDRIVE%%HOMEPATH% to D:\Users\%USERNAME%. That is: don’t
change the %HOMEDRIVE% and %HOMEPATH% variables; just change the shortcut you use to launch the command prompt. This will be the less disruptive way.
Also have a batch file on the PATH, called .CMD.
Hope it will help you!