A command to run a script (.bat/.cmd) in a normal cmd.exe window instead of Windows Terminal. #18364

Closed
opened 2026-01-31 06:11:34 +00:00 by claunia · 2 comments
Owner

Originally created by @KcrPL on GitHub (Sep 2, 2022).

Description of the new feature/enhancement

A command to run a script (.bat/.cmd) in a normal cmd.exe window instead of Windows Terminal.

Some things are still handled differently in the Windows Terminal. I'm talking especially about the mode command not working which changes the window size. Is there already a way to do that?

Originally created by @KcrPL on GitHub (Sep 2, 2022). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> # Description of the new feature/enhancement A command to run a script (.bat/.cmd) in a normal cmd.exe window instead of Windows Terminal. <!-- A clear and concise description of what the problem is that the new feature would solve. Describe why and how a user would use this new functionality (if applicable). --> Some things are still handled differently in the Windows Terminal. I'm talking especially about the `mode` command not working which changes the window size. Is there already a way to do that? <!-- A clear and concise description of what you want to happen. -->
claunia added the Issue-QuestionNeeds-TriageNeeds-Tag-FixResolution-Answered labels 2026-01-31 06:11:35 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Sep 2, 2022):

conhost.exe -- cmd.exe <the batch file>

image

But also go upvote #5094

@zadjii-msft commented on GitHub (Sep 2, 2022): `conhost.exe -- cmd.exe <the batch file>` ![image](https://user-images.githubusercontent.com/18356694/188194582-760f0a9b-3abc-44aa-becc-455867ff2048.png) But also go upvote #5094
Author
Owner

@KcrPL commented on GitHub (Sep 2, 2022):

Thanks! That's exactly what I needed.

@KcrPL commented on GitHub (Sep 2, 2022): Thanks! That's exactly what I needed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#18364