How to append doskey.cmd at start of the Terminal? #5641

Closed
opened 2026-01-31 00:18:03 +00:00 by claunia · 2 comments
Owner

Originally created by @DanyGee on GitHub (Dec 19, 2019).

Environment

Windows build number: Version 10.0.18363.535
Windows Terminal version (if applicable): Version: 0.7.3451.0

Steps to reproduce

Edit the shortcut (target) of the Terminal, to launch doskey.cmd when starting the Terminal:

C:\Users\%USERPROFILE%\AppData\Local\Microsoft\WindowsApps\wt.exe /K C:\Windows\System32\doskey.cmd

(I used this trick with classic cmd and it worked)

Expected behavior

Doskey.cmd gets loaded when Terminal starts.

Actual behavior

Doskey.cmd isn't loaded when Terminal starts.
To make it work I have to type the command manually, then it works.
If I close the Terminal and reopen it, I have to type the command [doskey.cmd] again, to make it work.

Question

Is there any other way to make it work automagically without manual typing?

Originally created by @DanyGee on GitHub (Dec 19, 2019). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 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! --> <!-- This bug tracker is monitored by Windows Terminal development team and other technical folks. **Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**. Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue. If this is an application crash, please also provide a Feedback Hub submission link so we can find your diagnostic data on the backend. Use the category "Apps > Windows Terminal (Preview)" and choose "Share My Feedback" after submission to get the link. Please use this form and describe your issue, concisely but precisely, with as much detail as possible. --> # Environment ```none Windows build number: Version 10.0.18363.535 Windows Terminal version (if applicable): Version: 0.7.3451.0 ``` # Steps to reproduce Edit the shortcut (target) of the Terminal, to launch doskey.cmd when starting the Terminal: ``` C:\Users\%USERPROFILE%\AppData\Local\Microsoft\WindowsApps\wt.exe /K C:\Windows\System32\doskey.cmd ``` (I used this trick with classic cmd and it worked) <!-- A description of how to trigger this bug. --> # Expected behavior Doskey.cmd gets loaded when Terminal starts. <!-- A description of what you're expecting, possibly containing screenshots or reference material. --> # Actual behavior Doskey.cmd isn't loaded when Terminal starts. To make it work I have to type the command manually, then it works. If I close the Terminal and reopen it, I have to type the command [doskey.cmd] again, to make it work. <!-- What's actually happening? --> # Question Is there any other way to make it work automagically without manual typing?
claunia added the Needs-TriageNeeds-Tag-Fix labels 2026-01-31 00:18:03 +00:00
Author
Owner

@ramsay-vibes commented on GitHub (Dec 19, 2019):

Presumably you are trying to automatically launch doskey for the cmd shell. If yes, try overriding the cmd shell profile and minimally define the following (paying close attention to the cmd shell GUID, it must match).

"profiles": [
   {
     // Command
     "commandline": "cmd.exe /k \"C:/Windows/System32/doskey.cmd\"",
     "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
   }
]
@ramsay-vibes commented on GitHub (Dec 19, 2019): Presumably you are trying to automatically launch `doskey` for the cmd shell. If yes, try overriding the cmd shell profile and minimally define the following (paying close attention to the cmd shell GUID, it must match). ``` "profiles": [ { // Command "commandline": "cmd.exe /k \"C:/Windows/System32/doskey.cmd\"", "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}", } ] ```
Author
Owner

@DanyGee commented on GitHub (Dec 19, 2019):

Presumably you are trying to automatically launch doskey for the cmd shell. If yes, try overriding the cmd shell profile and minimally define the following (paying close attention to the cmd shell GUID, it must match).

"profiles": [
   {
     // Command
     "commandline": "cmd.exe /k \"C:/Windows/System32/doskey.cmd\"",
     "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
   }
]

Yes! Thx, it worked!
bitmoji

@DanyGee commented on GitHub (Dec 19, 2019): > Presumably you are trying to automatically launch `doskey` for the cmd shell. If yes, try overriding the cmd shell profile and minimally define the following (paying close attention to the cmd shell GUID, it must match). > > ``` > "profiles": [ > { > // Command > "commandline": "cmd.exe /k \"C:/Windows/System32/doskey.cmd\"", > "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}", > } > ] > ``` Yes! Thx, it worked! ![bitmoji](https://render.bitstrips.com/v2/cpanel/b9baff8d-2774-464d-b513-c1d6be51e56c-7692d7fb-cede-4c34-947c-12129a06b524-v1.png?transparent=1&palette=1&width=246)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#5641