File association for .BAT and .CMD #8933

Closed
opened 2026-01-31 01:41:47 +00:00 by claunia · 2 comments
Owner

Originally created by @xmha97 on GitHub (Jun 9, 2020).

Hello,
Please add below feature:

  • File association for .BAT and .CMD

Desktop

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\cmdfile\shell\open\command]
@="\"C:\\Users\\Muhammad\\AppData\\Local\\Microsoft\\WindowsApps\\wt.exe\" new-tab -p \"Command Prompt\" \"%1\" %*"

[HKEY_CLASSES_ROOT\batfile\shell\open\command]
@="\"C:\\Users\\Muhammad\\AppData\\Local\\Microsoft\\WindowsApps\\wt.exe\" new-tab -p \"Command Prompt\" \"%1\" %*"

Thanks

Originally created by @xmha97 on GitHub (Jun 9, 2020). Hello, Please add below feature: - File association for .BAT and .CMD ![Desktop](https://user-images.githubusercontent.com/23485114/84151379-87d67e00-aa78-11ea-961a-f07c96931514.gif) ```reg Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\cmdfile\shell\open\command] @="\"C:\\Users\\Muhammad\\AppData\\Local\\Microsoft\\WindowsApps\\wt.exe\" new-tab -p \"Command Prompt\" \"%1\" %*" [HKEY_CLASSES_ROOT\batfile\shell\open\command] @="\"C:\\Users\\Muhammad\\AppData\\Local\\Microsoft\\WindowsApps\\wt.exe\" new-tab -p \"Command Prompt\" \"%1\" %*" ``` Thanks
claunia added the Issue-FeatureResolution-Duplicate labels 2026-01-31 01:41:47 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Jun 9, 2020):

Thanks for the suggestion! I think the way we plan on solving this is by letting the user broadly set another application as the default terminal app, instead of the vintage console host. That way, double-clicking on a .bat or .cmd file would automatically open cmd inside whatever the default terminal application is.

That work is being tracked over in /dup #492

@zadjii-msft commented on GitHub (Jun 9, 2020): Thanks for the suggestion! I think the way we plan on solving this is by letting the user broadly set another application as the _default_ terminal app, instead of the vintage console host. That way, double-clicking on a `.bat` or `.cmd` file would automatically open `cmd` inside _whatever_ the default terminal application is. That work is being tracked over in /dup #492
Author
Owner

@ghost commented on GitHub (Jun 9, 2020):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost commented on GitHub (Jun 9, 2020): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#8933