29

There is a need to quickly open the current directory from the command prompt. I know that there is a command explorer.

But to enter the full path to the directory is very inconvenient. 

For example:

exoplorer c:\progra~1\nodejs~1\worskp~1\project\module\convert

It works. But is that the faster you can open the folder with the mouse ... I think it's not right.

And this command:

explorer cd.

Opens My Documents. Although I am in a different directory.

Whether prompt me please!

Grzegorz Adam Kowalski
  • 5,243
  • 3
  • 29
  • 40
user3366290
  • 447
  • 1
  • 5
  • 7

7 Answers7

70

You can try:

start .

or

explorer .

. is a shortcut for current directory.

In PowerShell command prompt:

ii .

ii is a shortcut for Invoke-Item.

Grzegorz Adam Kowalski
  • 5,243
  • 3
  • 29
  • 40
18

Use the . to indicate the current directory:

explorer .
CodeCaster
  • 147,647
  • 23
  • 218
  • 272
9

Just to add to the answers above (tested on windows 10)

Open current directory

explorer .
explorer ...
explorer ....
explorer .......

start . 
start ...
start ....
start ........

Open subfolder of current directory

start .\subfolder
explorer .\subfolder

Open the parent directory of current directory

explorer ..
start ..

Navigate to another folder from the parent directory

start ..\another-folder
explorer ..\another-folder
Michael Iyke
  • 371
  • 4
  • 12
1

Create a batch file (eg. c:\somepath\q.bat) with this line:

explorer .

Add it to your path (example shown will only work in the current console, add it to your System Properties->Advanced->Environment Variables to make it work anywhere):

set PATH=%PATH%;c:\somepath

Then open a command window and type

q

Then it should open the fastest way.

ergonaut
  • 6,929
  • 1
  • 17
  • 47
0

just append cmd in the beginning of the address bar in windows.

for eg: if you're at [C:\foo\bar] just type cmd [cmd C:\foo\bar] and hit enter. this will open a terminal at C:\foo\bar for you.

0
  • Press CTRL+L
  • type cmd, press enter
Abraham
  • 12,140
  • 4
  • 56
  • 92
-1

You can do like this:

  1. Open the desired folder
  2. Press [CTRL+L] or click on the url bar (the current path will be highlited)
  3. Type 'cmd' into the url bar and press enter

A little img containing the explanation