9

I am wondering if there is a command one could type into The Windows Command Prompt which would cause Windows Explorer to open a folder set at the Command Prompt's current working directory?

(This is kind of the opposite problem where people want to open the Command Prompt from the folder. I.e., opposite of this: How can I open a command prompt in current folder with a keyboard shortcut?)

E.S.
  • 231

2 Answers2

33
explorer . 

This is what I use.

start . 

Perhaps the shortest.

Scott Rhee
  • 1,993
  • 1
    I always use start . myself. fast and easy way. – LPChip Dec 03 '14 at 20:13
  • 9
    I know the OP explicitly asked for DOS and Windows Explorer in the post (and the tags). But for the platform-agnostic people like me who clicked because the post title was interesting, it's xdg-open . for most GNU/Linuxes and open . for OS X. The man page for open on Mac has lots of other useful options, too (I use -a all the time). – Kevin E Dec 03 '14 at 20:59
  • +1. the dot saves needless typing, regardless of whether you choose explorer or start. – Seiyria Dec 04 '14 at 01:24
9
explorer %cd%

Should do it. %cd% will always print the current directory.

Arthur
  • 1,137