When default profile is set to Command Prompt, "Open in Windows Terminal" uses cmd.exe in current folder #16359

Closed
opened 2026-01-31 05:05:09 +00:00 by claunia · 3 comments
Owner

Originally created by @XenoPanther on GitHub (Jan 9, 2022).

Originally assigned to: @zadjii-msft on GitHub.

Windows Terminal version

1.11.3471.0

Windows build number

10.0.22526.1000

Other Software

No response

Steps to reproduce

  1. Ensure that cmd.exe from another version of Windows is in the current folder
  2. Right-click a black space in Explorer and then click Open in Windows Terminal

Expected Behavior

Ideally, the system's command prompt should be used as opposed to the one in the current

Actual Behavior

The command prompt in the folder is used as opposed to the one from the system

https://user-images.githubusercontent.com/81916167/148704076-bc05a3e8-f018-47e7-bab8-38fceacecd5b.mp4

Originally created by @XenoPanther on GitHub (Jan 9, 2022). Originally assigned to: @zadjii-msft on GitHub. ### Windows Terminal version 1.11.3471.0 ### Windows build number 10.0.22526.1000 ### Other Software _No response_ ### Steps to reproduce 1. Ensure that cmd.exe from another version of Windows is in the current folder 2. Right-click a black space in Explorer and then click Open in Windows Terminal ### Expected Behavior Ideally, the system's command prompt should be used as opposed to the one in the current ### Actual Behavior The command prompt in the folder is used as opposed to the one from the system https://user-images.githubusercontent.com/81916167/148704076-bc05a3e8-f018-47e7-bab8-38fceacecd5b.mp4
Author
Owner

@zadjii-msft commented on GitHub (Jan 9, 2022):

<idea for later>:

We look for profiles that have the default command prompt guid, and the commandline set to cmd.exe. If we find that, we should replace that with the full path to the system32 cmd.exe. We'll discuss Monday

@zadjii-msft commented on GitHub (Jan 9, 2022): \<idea for later>: We look for profiles that have the default command prompt guid, and the commandline set to `cmd.exe`. If we find that, we should replace that with the full path to the system32 `cmd.exe`. We'll discuss Monday
Author
Owner

@zadjii-msft commented on GitHub (Jan 10, 2022):

From discussion: We should also do this with Windows Powershell.

@zadjii-msft commented on GitHub (Jan 10, 2022): From discussion: We should also do this with Windows Powershell.
Author
Owner

@ghost commented on GitHub (Feb 3, 2022):

:tada:This issue was addressed in #12149, which has now been successfully released as Windows Terminal Preview v1.13.10336.0.🎉

Handy links:

@ghost commented on GitHub (Feb 3, 2022): :tada:This issue was addressed in #12149, which has now been successfully released as `Windows Terminal Preview v1.13.10336.0`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v1.13.10336.0) * [Store Download](https://www.microsoft.com/store/apps/9n8g5rfz9xk3?cid=storebadge&ocid=badge)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#16359