Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using Win XP in my company. I encountered a wonder thing:

  1. I open an explorer.exe window.
  2. Just enter a directory (for example, C:\Windows).
  3. Run cmd.exe (Win+R, then issue cmd.exe)

The init path will change to the current path in explorer (C:\Windows) automatically!

It's a good feature, I want use it in my home as well. However, I don't know how to configure this. I checked the registry configuration information, and it same with my PC. I also do many searches by Google, but most of result are talking about add "Open commmand prompt here" to pop menu of folder.

If you know anything about this, please kindly share me. Thanks!

PS: if I didn't open any explore.exe window, then run cmd.exe, the path would be the "Desktop".

share|improve this question
When I run cmd.exe the directory is set to my current user directory (C:\Documents and Settings\User) - presumably this is currently the same for you on your home machine? – w3dk Oct 21 '11 at 16:24

If you're using Vista/7 then try Shift + Right Click on the folder and Open Command Window Here

share|improve this answer
Thanks for your reply! ^_^ – redraiment Oct 21 '11 at 15:48
Oh, I didn't know that! Faster! – Magnetic_dud Oct 21 '11 at 22:11
No problem!! :D – Sandeep Bansal Oct 21 '11 at 22:16

I never seen something like that. That would be so cool.

Otherways you could just add a "Open commmand prompt here" shortcut on the right click menu

share|improve this answer
Actually, I know the tip for "Open command prompt here". Anyway, thanks for your advise! – redraiment Oct 21 '11 at 15:48

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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