Open terminal in folder windows

This can be done easily in Ubuntu, just right click and open Terminal. It is very inconvenient to open cmd.exe then cd to the folder.

So, how do I open a terminal quickly from a file explorer at a folder?

Mokubai's user avatar

Mokubai

89.8k25 gold badges208 silver badges236 bronze badges

asked Sep 26, 2011 at 14:56

Catherine's user avatar

1

  1. Hold Shift + Right Click the folder you want it opened on, and click «open command window here«. That should do the trick!

OR

  1. You can also type cmd into the Windows File Explorer address bar (use Ctrl+L to focus the address bar) and press Enter to open the shell.

answered Sep 26, 2011 at 17:04

sofly's user avatar

soflysofly

1,3461 gold badge8 silver badges6 bronze badges

6

You can type cmd in Windows Explorer’s location bar (which you can edit with the keyboard shortcut Alt+D); it will open a terminal upon pressing Enter.


Personally I use a voice command in Dragon NaturallySpeaking that takes care of it:

Dragon NaturallySpeaking commands editor

Code:

Sub Main
    SendKeys "%d"
    Wait(0.1)
    SendKeys "cmd"
    Wait(0.1)
    SendKeys "{ENTER}"
End Sub

phuclv's user avatar

phuclv

26.7k15 gold badges115 silver badges235 bronze badges

answered Jul 15, 2015 at 5:09

Franck Dernoncourt's user avatar

2

Press Ctrl+L. This will allow you to edit the location bar address of the file explorer. Type cmd and press Enter. This will open command prompt in current folder.

phuclv's user avatar

phuclv

26.7k15 gold badges115 silver badges235 bronze badges

answered Sep 3, 2017 at 13:40

Nachiket Saggam's user avatar

2

You can use Andrew Richards’ Enhancing the “Open Command Prompt here” Context Menu experience tweak

run cmd elevated

run powershell elevated

Just import the below *.reg file (or copy from the MSDN blog above)

Windows Registry Editor Version 5.00

; Command Prompt

[HKEY_CLASSES_ROOT\Directory\shell\01MenuCmd]
"MUIVerb"="Command Prompts"
"Icon"="cmd.exe"
"ExtendedSubCommandsKey"="Directory\\ContextMenus\\MenuCmd"

[HKEY_CLASSES_ROOT\Directory\background\shell\01MenuCmd]
"MUIVerb"="Command Prompts"
"Icon"="cmd.exe"
"ExtendedSubCommandsKey"="Directory\\ContextMenus\\MenuCmd"

[HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuCmd\shell\open]
"MUIVerb"="Command Prompt"
"Icon"="cmd.exe"

[HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuCmd\shell\open\command]
@="cmd.exe /s /k pushd \"%V\""

[HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuCmd\shell\runas]
"MUIVerb"="Command Prompt Elevated"
"Icon"="cmd.exe"
"HasLUAShield"=""

[HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuCmd\shell\runas\command]
@="cmd.exe /s /k pushd \"%V\""


; PowerShell

[HKEY_CLASSES_ROOT\Directory\shell\02MenuPowerShell]
"MUIVerb"="PowerShell Prompts"
"Icon"="powershell.exe"
"ExtendedSubCommandsKey"="Directory\\ContextMenus\\MenuPowerShell"

[HKEY_CLASSES_ROOT\Directory\background\shell\02MenuPowerShell]
"MUIVerb"="PowerShell Prompts"
"Icon"="powershell.exe"
"ExtendedSubCommandsKey"="Directory\\ContextMenus\\MenuPowerShell"

[HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuPowerShell\shell\open]
"MUIVerb"="PowerShell"
"Icon"="powershell.exe"

[HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuPowerShell\shell\open\command]
@="powershell.exe -noexit -command Set-Location '%V'"

[HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuPowerShell\shell\runas]
"MUIVerb"="PowerShell Elevated"
"Icon"="powershell.exe"
"HasLUAShield"=""

[HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuPowerShell\shell\runas\command]
@="powershell.exe -noexit -command Set-Location '%V'"


; Ensure OS Entries are on the Extended Menu (Shift-Right Click)

[HKEY_CLASSES_ROOT\Directory\shell\cmd]
"Extended"=""

[HKEY_CLASSES_ROOT\Directory\background\shell\cmd]
"Extended"=""

[HKEY_CLASSES_ROOT\Directory\shell\Powershell]
"Extended"=""

[HKEY_CLASSES_ROOT\Directory\background\shell\Powershell]
"Extended"=""

answered Feb 19, 2020 at 16:40

phuclv's user avatar

phuclvphuclv

26.7k15 gold badges115 silver badges235 bronze badges

Update for Windows 10 when CMD was replaced by PowerShell:

For quite some time, there is a PowerShell module called OpenHere that gives you granular options to control this functionality.

All you need is to copy paste this into PowerShell with elevated rights:

Install-Module -Name OpenHere; Import-Module -Name OpenHere

and start to explore the Set-OpenHereShortcut function.

Disclosure:

I’m a developer of this module.

answered Aug 25, 2020 at 10:01

KUTlime's user avatar

2

You must log in to answer this question.

Not the answer you’re looking for? Browse other questions tagged

.

This can be done easily in Ubuntu, just right click and open Terminal. It is very inconvenient to open cmd.exe then cd to the folder.

So, how do I open a terminal quickly from a file explorer at a folder?

Mokubai's user avatar

Mokubai

89.8k25 gold badges208 silver badges236 bronze badges

asked Sep 26, 2011 at 14:56

Catherine's user avatar

1

  1. Hold Shift + Right Click the folder you want it opened on, and click «open command window here«. That should do the trick!

OR

  1. You can also type cmd into the Windows File Explorer address bar (use Ctrl+L to focus the address bar) and press Enter to open the shell.

answered Sep 26, 2011 at 17:04

sofly's user avatar

soflysofly

1,3461 gold badge8 silver badges6 bronze badges

6

You can type cmd in Windows Explorer’s location bar (which you can edit with the keyboard shortcut Alt+D); it will open a terminal upon pressing Enter.


Personally I use a voice command in Dragon NaturallySpeaking that takes care of it:

Dragon NaturallySpeaking commands editor

Code:

Sub Main
    SendKeys "%d"
    Wait(0.1)
    SendKeys "cmd"
    Wait(0.1)
    SendKeys "{ENTER}"
End Sub

phuclv's user avatar

phuclv

26.7k15 gold badges115 silver badges235 bronze badges

answered Jul 15, 2015 at 5:09

Franck Dernoncourt's user avatar

2

Press Ctrl+L. This will allow you to edit the location bar address of the file explorer. Type cmd and press Enter. This will open command prompt in current folder.

phuclv's user avatar

phuclv

26.7k15 gold badges115 silver badges235 bronze badges

answered Sep 3, 2017 at 13:40

Nachiket Saggam's user avatar

2

You can use Andrew Richards’ Enhancing the “Open Command Prompt here” Context Menu experience tweak

run cmd elevated

run powershell elevated

Just import the below *.reg file (or copy from the MSDN blog above)

Windows Registry Editor Version 5.00

; Command Prompt

[HKEY_CLASSES_ROOT\Directory\shell\01MenuCmd]
"MUIVerb"="Command Prompts"
"Icon"="cmd.exe"
"ExtendedSubCommandsKey"="Directory\\ContextMenus\\MenuCmd"

[HKEY_CLASSES_ROOT\Directory\background\shell\01MenuCmd]
"MUIVerb"="Command Prompts"
"Icon"="cmd.exe"
"ExtendedSubCommandsKey"="Directory\\ContextMenus\\MenuCmd"

[HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuCmd\shell\open]
"MUIVerb"="Command Prompt"
"Icon"="cmd.exe"

[HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuCmd\shell\open\command]
@="cmd.exe /s /k pushd \"%V\""

[HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuCmd\shell\runas]
"MUIVerb"="Command Prompt Elevated"
"Icon"="cmd.exe"
"HasLUAShield"=""

[HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuCmd\shell\runas\command]
@="cmd.exe /s /k pushd \"%V\""


; PowerShell

[HKEY_CLASSES_ROOT\Directory\shell\02MenuPowerShell]
"MUIVerb"="PowerShell Prompts"
"Icon"="powershell.exe"
"ExtendedSubCommandsKey"="Directory\\ContextMenus\\MenuPowerShell"

[HKEY_CLASSES_ROOT\Directory\background\shell\02MenuPowerShell]
"MUIVerb"="PowerShell Prompts"
"Icon"="powershell.exe"
"ExtendedSubCommandsKey"="Directory\\ContextMenus\\MenuPowerShell"

[HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuPowerShell\shell\open]
"MUIVerb"="PowerShell"
"Icon"="powershell.exe"

[HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuPowerShell\shell\open\command]
@="powershell.exe -noexit -command Set-Location '%V'"

[HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuPowerShell\shell\runas]
"MUIVerb"="PowerShell Elevated"
"Icon"="powershell.exe"
"HasLUAShield"=""

[HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuPowerShell\shell\runas\command]
@="powershell.exe -noexit -command Set-Location '%V'"


; Ensure OS Entries are on the Extended Menu (Shift-Right Click)

[HKEY_CLASSES_ROOT\Directory\shell\cmd]
"Extended"=""

[HKEY_CLASSES_ROOT\Directory\background\shell\cmd]
"Extended"=""

[HKEY_CLASSES_ROOT\Directory\shell\Powershell]
"Extended"=""

[HKEY_CLASSES_ROOT\Directory\background\shell\Powershell]
"Extended"=""

answered Feb 19, 2020 at 16:40

phuclv's user avatar

phuclvphuclv

26.7k15 gold badges115 silver badges235 bronze badges

Update for Windows 10 when CMD was replaced by PowerShell:

For quite some time, there is a PowerShell module called OpenHere that gives you granular options to control this functionality.

All you need is to copy paste this into PowerShell with elevated rights:

Install-Module -Name OpenHere; Import-Module -Name OpenHere

and start to explore the Set-OpenHereShortcut function.

Disclosure:

I’m a developer of this module.

answered Aug 25, 2020 at 10:01

KUTlime's user avatar

2

You must log in to answer this question.

Not the answer you’re looking for? Browse other questions tagged

.

@nickraphael:

I’m yet to see a solution that will do the following:

  1. Allow me to select a default directory when I open Terminal from start menu.
  2. When running wt.exe from explorer window will open Terminal to that directory.

Having this in settings.json:

{
    "profiles": {
        "defaults": {
            "startingDirectory": "."
        }
    }
}

makes Windows Terminal start in the current directory for me when launched from Explorer location box, win+r or from other programs (VS Code etc.). However, when starting from Start menu, either by searching or navigating to the shortcut, it starts in C:\WINDOWS\system32.

To fix the Start menu issue, I pinned a shortcut to wt.exe to the Start menu (where wt tells its location), renamed the shortcut to my liking and then modified it to have:

Now Windows Terminal starts in my home directory when launched from the Start menu.

It would be nice if Windows Terminal wouldn’t change its directory by default to make it more transparent. There aren’t many other programs which do that.

I’m also wondering if the shortcut to wt.exe could be made by the installer automatically.

New terminal opens by command wt or start wt. It always starts in the default folder. To open in current directory one should set setting "startingDirectory": "." in terminal profile CTRL + ,

{
    // Make changes here to the powershell profile
    "guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
    "name": "Windows PowerShell",
    "commandline": "pwsh.exe",
    "colorScheme": "One Half Dark",
    "fontFace": "Cascadia Mono",
    "startingDirectory": ".",
    "hidden": false
},

  • Windows Terminal: Open terminal in current folder via single command
  • https://www.howtogeek.com/426346/how-to-customize-the-new-windows-terminal-app/

Как установить будильник на компьютере с Windows 10?

В операционной системе windows 10 есть встроенный будильник. Он так и назыается «Будильник и часы». Cочетает такие функции, как будильник, мировое время, таймер и секундомер.

Обновить bash на Windows 10

Если, запуская подсистему Linux мы получаем сообщение о необходимости обновить пакеты, то можно решить проблему удалив подсистему и поставив заново. Но тогда удалятся и данные, а можно данные сохранить, проведя процедуру upgrade подсистемы linux.

Перенести базы PostgreSQL на другой диск Windows

Если у вас установлен Postgres в конфигурации по умолчанию, то его базы хранятся в Program Files. Если есть необходимость освободить место на системном диске C, то можно перенести базы данных Postgres на другой диск.

Open with Code

Добавление пункта Open with Code после установки VS Code

Установка laravel/installer под windows bash (Ubuntu)

Сначала установите 2 расширения php:

sudo apt-get install php-zip
sudo apt-get install php-xml

Потом установщик laravel

Cannot start virtual machine on Virtualbox

При сообщении Raw-mode is unavailable courtesy of Hyper-V. (VERR_SUPDRV_NO_RAW_MODE_HYPER_V_ROOT). отключить компонент Windows — Hyper-V и перезагрузиться.

Initiate commands directly from anywhere you like

What to Know

  • Type cmd into the search bar to open the command prompt.
  • Shift + right click in a window, then click Open PowerShell Window here to access the PowerShell interface.
  • Open the folder you wish to access, then type cmd into the folder path at the top of the window to open a command prompt within the folder.

This article teaches you how to open the command prompt window in a folder in Windows 10 and how to open a command prompt anywhere within Windows 10. It also explains why you may wish to do so. 

How Do I Open Command Prompt in Windows 10?

If you want to open a command prompt anywhere in Windows 10 and browse to the relevant folder yourself, the process is straightforward and can be accessed within moments. Here’s where to look.

  1. On the Windows 10 search bar, type cmd.

  2. Click Run as Administrator to open the command prompt with full access rights to do whatever you need to do.

How to Open Command Prompt in a Folder

Suppose you’re looking to directly open a command prompt window within a folder in Windows 10 to initiate a command. In that case, there are a couple of different ways of doing so. Here’s the quickest way to do so using a keyboard shortcut in File Explorer.

  1. On your Windows 10 PC, open the folder you wish to open the command prompt within.

  2. Press Shift on your keyboard and Right Click on your mouse.

  3. Left-click Open PowerShell window here.

  4. You now have a PowerShell window open located at the folder you were previously looking at, and can use this window to run some command prompts.

How Do I Open a Terminal Window in a Folder?

A Terminal window is traditionally what the command line prompt refers to on Macs, but it can be used with Windows PCs rather than a simple command prompt. Here’s a different way to open a command prompt (or Windows Terminal) within a folder in Windows 10.

Windows Terminal has its own tool. Once installed (instructions in the link above), you can right-click in any folder and choose Open in Windows Terminal to get to it.

  1. Open the folder you wish to open the command prompt window from.

  2. Type cmd into the location bar at the top of the window and tap enter.

  3. The command prompt will now be opened in the desired location. 

Why Would I Use the Command Prompt Tool? 

The Windows 10 command prompt tool is ideal if you want to run a program using particular parameters. Windows 10 has both the command prompt and the PowerShell interface, with both offering a similar-looking experience but with slight variations in terms of the commands, you can enter. You won’t see a difference for the most part, but specific commands will need you to use one or the other. 

A list of command prompts can help you do more complicated things with your PC. But be careful what you do in the command prompt interface, as some commands can be potentially catastrophic if misused. 

How to Clear the Windows Command Prompt Screen

Microsoft is encouraging users to use PowerShell rather than Command Prompt so you may see it used more so in some examples. 

FAQ

  • What is Command Prompt?

    It’s a command-line interpreter program that’s available on all Windows PCs. It’s often used to perform more advanced administrative functions or to troubleshoot an issue. The commands you can use depend on which version of Windows you own.

  • How do you clear Command Prompt?

    Type «cls» and press Enter. This clears all of the previous commands you entered.

  • Can I use copy/paste in Command Prompt?

    Yes, but you need to enable it first. Open Command Prompt, right-click on the top bar, and select Properties. Under Edit Options, select the checkbox next to Use Ctrl+Shift+C/V as Copy/Paste.

Thanks for letting us know!

Get the Latest Tech News Delivered Every Day

Subscribe

  • Open street maps для windows
  • Open ssh server for windows
  • Open source программы для windows
  • Open source приложения для windows
  • Open source torrent client for windows