Skip to content Skip to sidebar Skip to footer

How to open CMD in a specific folder in Windows 10

How to open CMD in a specific folder in Windows 10

The usefulness of the CMD (Command Prompt) is almost the same as that of the Terminal on Linux, namely executing a command. Opening CMD via the START menu leads to the directory in which the current user is located. But is it possible to open CMD in a specific directory or folder?

The answer is can. When in Windows 7 opening CMD in a specific folder by pressing the key SHIFT right-click and later the options appear. Unfortunately the menu cannot be displayed in Windows 10 because something changes in the registry.

However, there is an equally simple way that only requires the help of Windows Explorer. Do you want to know how? Please start by following the steps below.

Tutorial Open CMD in a specific folder

  1. Open Windows Explorer and navigate to the folder you want.

  2. Then click on the folder address column at the top and enter cmd then ENTER.

    Enter CMD in the folder address column

  3. Now CMD will definitely appear in the current folder.

    CMD is successfully displayed in certain folders

It’s not that hard is it? Although there is a way to return the menu to open CMD when you right click, it is a bit risky as you will have to change something in the registry. And at least the above method is just as easy.

Also read: How to Execute CMD Commands Simultaneously

Execution of CMD from BAT file

It can be said that the above method is very simple. It only has one disadvantage, which is that it cannot be used directly to run CMD with administrator rights. And it can be done in this alternative way.

So this second method uses Batch script with which a normal CMD or a CMD (administrator) elevator can be opened. And all you need is to create a new file in the destination folder named opencmd.bat and then edit and write the code exactly as below.

cd /d %~dp0cmd.exe

Then double-click on the Bukacmd.bat file, CMD will surely appear immediately according to the current directory. To open CMD as an administrator, just right-click the opencmd.bat file and then click the menu Execute as administrator.

There’s no hard way as long as you get it right. And besides the two above, there are probably other options that are easy to do too. For example, if you know please share it in the comments column to help everyone learn.

Hopefully useful and good luck