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

You must quickly open the current directory from the command line. I know there is an explorer command.

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

For instance:

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

It works. But, the faster you can open the folder with the mouse ... I think it is not.

And this command:

 explorer cd. 

Opens My Documents . Although I'm in a different directory.

Can you advise me!

+5
source share
3 answers

You can try:

 start . 

or

 explorer . 

. is a shortcut for the current directory.

+9
source

Use . to indicate the current directory:

 explorer . 
+7
source

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

 explorer . 

Add it to your path (the example is shown only in the current console, add it to your system properties-> Advanced-> Environment Variables so that it works anywhere):

 set PATH=%PATH%;c:\somepath 

Then open the command window and type

 q 

Then he should open the fastest way.

0
source

Source: https://habr.com/ru/post/1232793/


All Articles