How to Open CMD or PowerShell in Current Folder in Windows

Sometimes, we need to open CMD or PowerShell in specific location or current folder. Usually people open Command Prompt or PowerShell from Start menu. And then, browse to desired location using cd (change directory) command. But this is a lengthy process and nobody wants to do this every time.

In earlier builds of Windows 10 you could easily start Command Prompt in a specific location directly from File menu in Windows Explorer. But in newer builds, PowerShell has replaced the Command Prompt in File menu, context menu and alternate Start menu.

Besides Windows 10, you can also open command prompt in Windows 7 and XP using simple trick. So, in this tutorial, we will explain the process for Windows 7 and XP along with Windows 10.

SEE ALSO: A to Z list of Windows CMD Commands – PDF Download Available.

Open CMD or PowerShell in Current folder in Windows 10

Let’s see the process for Windows 10 first. We will show you simple tricks to achieve the task.

Step 1: Start CMD or PowerShell in Current folder from Address Bar

In Windows 10 go to the folder where you want to open Command Prompt. Then, type cmd in address bar and press Enter. Command prompt will open in current folder path.

Type CMD in address bar and press Enter
Type Cmd In Address Bar To Open Cmd In Current Folder

NOTE: You can also open PowerShell in the current folder using this trick. Simply type powershell in the address bar and press Enter.


SEE ALSO: How to Uninstall Programs using Command Prompt in Windows 10?


Step 2: Open PowerShell or CMD in Current folder from File Menu

Second trick uses Windows Explorer’s menu. Click on File from menu bar and hover over Open Windows PowerShell. Then select Open Windows PowerShell or Open Windows PowerShell as administrator. This will open PowerShell in current folder.

Open Powershell In Current Folder From File Menu
Open PowerShell in current folder from File Menu

After opening PowerShell, you can type cmd and press Enter to start Command Prompt in current location.

Type Cmd Command In Powershell To Start Command Prompt In Current Location
Type cmd command in PowerShell to start Command Prompt in Current folder

SEE ALSO: 10 Cool Command Prompt Tricks for You.


Step 3: Start PowerShell and CMD from Right-click Context Menu

You can also open PowerShell in current directory from right-click context menu. Simply press & hold Shift key and right-click in the blank space. Then select “Open PowerShell window here” from context menu. This will open PowerShell at the current path.

Press And Hold Shift Key And Right Click On Blank Space Then Select Open Powershell Window Here
Press & hold Shift key and select ‘Open PowerShell window here‘ from right-click menu

After that you can type cmd and press enter to start CMD in the same path/location.

Start Command Prompt from PowerShell
Type Cmd Command In Powershell To Start Command Prompt In Current Location

SEE ALSO: How to Make Bootable USB using Command Prompt?


Start Command Prompt in Current folder in Windows 7 or XP

In Windows XP and 7, there is no option to start CMD in current folder from File menu. So, you can use address bar and right-click context menu tricks to start CMD in current folder. Here we are explaining context menu trick only.

Step 1: Start CMD via Context Menu in Windows 7

Press & hold Shift-Key and right-click anywhere on blank space. Right-click context menu will pop-up and you will see “Open Command window here” option in this context menu. Click on “Open command window here” to open Command Prompt in that folder.

Hold Shift And Right Click In Blank Space Then Select Open Command Window Here In Windows 7
Hold Shift & Right-click in blank space. Then select “Open Command window here”

You can check the path in command window.

Command Prompt In Current Folder In Windows 7
Command Prompt in current folder in Windows 7

SEE ALSO: How to Customize Right-click Context Menu in Windows 10?


Launch CMD or PowerShell in Current Directory with Ease

Now you see, it’s quite easy to open command prompt window in current folder. These tricks come really handy when you need to launch CMD or PowerShell in current directory multiple times. The Shift-Key trick works for all versions of Windows while Explorer menu option is available in Windows 8 and Windows 10 only. And as mentioned earlier, in newer builds of Windows 10, PowerShell has replaced the Command Prompt. So, you will have to type cmd in PowerShell window to start Command prompt.

Well, hope you liked this quick trick. Feel free to share your thoughts on this in the comment section down below. If you wish to get such tricks directly into your inbox, don’t forget to subscribe.

Editorial Staff

Hi there, we are the editorial staff at HELLPC. We are a team of funny and technical people. Feel free to get in touch with us via Contact-Us page.

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Back to top button