cd (change directory) to my home directory on Windows [duplicate]
The environment variable is called %userprofile%
, which should work on most NT or newer machines.
As per James' comment if you're on another drive you would need to do cd /D %userprofile%
, else cd %userprofile%
will do.