Switch From Windows Command Prompt to Explorer

In your development workflow, you might find it more convenient to head back to the GUI interface of windows explorer while working from the command prompt. It's not uncommon for me to be 7 directories in from the root directory while working on a project. Thankfully, there are extremely simple ways to open your current command prompt directory in Windows Explorer, and vice versa.

Switching from Command Prompt to Explorer

Take this rather long directory for example, which contains this very Wordpress theme. If I wanted to view the files in explorer, I'd have to double click on a pretty long series of files to get to the same directory. The quick alternative is to use
start %CD%
The command successfully opens the current directory into a new explorer window.

Switching from Explorer to Command Prompt

Consider the scenario in which you're moving files around in windows explorer, and then you want to open the command prompt to edit files with VIM or commit with Git. Instead of opening your command prompt and doing a long cd command, you can perform the following simple steps:

Ensure No Items are Selected

The following key combination will not work if a file is selected. It will bring up a context menu which does not contain the item we'll be using.

Shift + Right-Click in Open Space

While holding shift, right click in some open space. This will bring up the usual right-click menu, but with one major exception. Near the bottom, you will see "Open Command Window Here" This opens up a command prompt correlating to the current directory.

That's It!

That was easy! Knowing the shortcuts of your OS can save you a lot of time, regardless of what OS you use. March 21, 2011
About the Author:

Joseph is the lead developer of Vert Studios Follow Joseph on Twitter: @Joe_Query
Subscribe to the blog: RSS
Visit Joseph's site: joequery.me