Opening Command Prompt with folder directory

Command Prompt opened

This really short article is about the extremely fast method of launching the Windows Command Prompt in the specified directory.
In most sources, you can find advice on getting to the root and target directory by using the cd command.
I think there is a much quicker way of getting you directly to the folder you want.
If you are in the correct folder, like for example here (Pic. 1).

Windows folder example

Pic. 1 An example of a directory in Windows 10.

In the file explorer address bar, where usually you see the current path where you are, you just need to type the cmd command and hit enter (Pic. 2).

Command prompt file explorer bar

Pic. 2 Executing Windows Command Prompt straight from the folder directory where we are.

You should see the Windows Command Prompt window opened with the same directory! (Pic. 3).

Windows Command Prompt launched from folder directory

Pic. 3 Windows Command Prompt opened at the same directory where we are currently.

I think this way can be really useful in terms of various tasks, which can be executed from the Command Prompt panel like batch renaming file extensions, etc.

Mariusz Krukar

Links:

  1. https://www.howtogeek.com/235101/10-ways-to-open-the-command-prompt-in-windows-10/
  2. https://www.digitalcitizen.life/command-prompt-how-use-basic-commands/
  3. https://www.geeksforgeeks.org/cd-cmd-command/
  4. https://www.addictivetips.com/windows-tips/command-prompt-window-in-file-explorer-windows-10/

Forums:

  1. https://superuser.com/questions/135214/using-cd-command-in-windows-command-line-cant-navigate-to-d

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *