Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to quickly open the current directory from the command prompt? OS - Windows

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!

like image 698
user3366290 Avatar asked Oct 02 '15 11:10

user3366290


People also ask

How do I open the current directory in Windows?

At the prompt, just type the following: start . The period is used in the Command Prompt as a shorthand for the current folder, so this will open the current folder in File Explorer. You can also use a double period to open the parent of the current folder.

How do I open command prompt faster?

The quickest way to open a Command Prompt window is through the Power User Menu, which you can access by right-clicking the Windows icon in the bottom-left corner of your screen, or with the keyboard shortcut Windows Key + X. It'll appear in the menu twice: Command Prompt and Command Prompt (Admin).

How do I open my current working directory?

The "pwd" command will output the full path to the "present working directory," and the "open" command will then open this directory in the Finder. This command is useful especially when you are navigating through hidden directories using the Terminal.


2 Answers

You can try:

start . 

or

explorer . 

. is a shortcut for current directory.

In PowerShell command prompt:

ii . 

ii is a shortcut for Invoke-Item.

like image 119
Grzegorz Adam Kowalski Avatar answered Sep 24 '22 02:09

Grzegorz Adam Kowalski


Use the . to indicate the current directory:

explorer . 
like image 30
CodeCaster Avatar answered Sep 25 '22 02:09

CodeCaster