Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

share|improve this question

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

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

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

1 Answer 1

up vote 12 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

share|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

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