Possible Duplicate:
Is there a short cut command in Windows command prompt to get to the current users home directory like there is in Linux?

Any short way to cd to the user specific directories in the command prompt. Like for e.g. in linux shell (debian based) we do a cd ~ and it instantly takes to the current logged user's directory /home/<username>. Anything to this effect on windows?

ps: currently trying to do this on xp machines. If it differs for other machines, mention that too.

link|improve this question

53% accept rate
1  
Actually, on Unix just cd with no arguments will take you to your home directory. – poolie Oct 18 '11 at 6:02
feedback

closed as exact duplicate by Diago Oct 18 '11 at 12:24

This question covers exactly the same ground as earlier questions on this topic; its answers may be merged with another identical question. See the FAQ for guidance on how to improve it.

1 Answer

up vote 9 down vote accepted

It is %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

link|improve this answer
If you are on a different drive to your user profile it wont change it for you, so you need to add the switch /D to cd to do this. – James Oct 18 '11 at 11:40
feedback

Not the answer you're looking for? Browse other questions tagged or ask your own question.