How to Open a CMD Window in a Folder on Windows

Configurare noua (How To)

Situatie

Sometimes you need Command Prompt open to a specific folder, but opening Command Prompt and then changing the directory manually requires typing several lines. Why not open it directly in the folder you need?

Solutie

Pasi de urmat

Windows 10 lets you launch Command Prompt in a folder through the File Explorer’s address bar. Type “cmd” in the address bar and then hit Enter.

Type "cmd" in the address bar, then hit Enter.

Command Prompt should open with its directory set to the folder you’re currently viewing.

Command Prompt opened in the example folder

Windows 11 retained the feature that lets you launch applications from the address bar in File Explorer. However, it added a new feature that allows you to launch a Windows Terminal — which includes Command Prompt — directly from the new right-click context menu.

Click "Open in Windows Terminal."

To switch Windows Terminal from PowerShell to Command Prompt, type cmd into the command line, and hit Enter. Alternatively, you can click the chevron (it looks like an arrow without the tail), and open a new Command Prompt tab.

Click the chevron, then click "Command Prompt."

If you don’t specifically need Command Prompt, you can launch PowerShell through the extended context menu. Hold Shift and right-click empty space, and then select “Open PowerShell Window Here.”

Click "Open PowerShell Window Here."

If you’re heart is set on using Command Prompt, you can launch it from the PowerShell window you just opened. Type cmd into the command-line, and then press Enter to start Command Prompt.

Tip solutie

Permanent

Voteaza

(2 din 2 persoane apreciaza acest articol)

Despre Autor

Leave A Comment?