Allow dragging files or folders into Terminal's Command Prompt window to display their path #16648

Closed
opened 2026-01-31 05:18:24 +00:00 by claunia · 7 comments
Owner

Originally created by @TheWox on GitHub (Feb 4, 2022).

Description of the new feature/enhancement

It would be great if one could drag files or folders into Terminal's command prompt window and have their path appear there. This is existing functionality in the old CMD prompt and its super useful. If any file/folder path has spaces, cmd automatically wraps it in quotation marks.

Proposed technical implementation details (optional)

Originally created by @TheWox on GitHub (Feb 4, 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 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). --> It would be great if one could drag files or folders into Terminal's command prompt window and have their path appear there. This is existing functionality in the old CMD prompt and its super useful. If any file/folder path has spaces, cmd automatically wraps it in quotation marks. # Proposed technical implementation details (optional) <!-- -->
claunia added the Issue-FeatureNeeds-TriageNeeds-Tag-FixNeeds-Attention labels 2026-01-31 05:18:24 +00:00
Author
Owner

@DHowett commented on GitHub (Feb 4, 2022):

You can definitely do this today! Is it not working for you?

@DHowett commented on GitHub (Feb 4, 2022): You can definitely do this today! Is it not working for you? ![](https://drop.howett.net/share/explorer_QnKfrDJQ5a.gif)
Author
Owner

@TheWox commented on GitHub (Feb 4, 2022):

Strange, on my personal pc which I am now using, the drag and drop does work, however on my work pc, it is blocked. I get a little no-entry/blocked icon next to the file being dragged in. Apologies I just assumed that the functionality was missing at work earlier! Both Terminals are 1.11.3471.0 on my work and home Windows pcs.

Any case, you can probably close off this request!

@TheWox commented on GitHub (Feb 4, 2022): Strange, on my personal pc which I am now using, the drag and drop does work, however on my work pc, it is blocked. I get a little no-entry/blocked icon next to the file being dragged in. Apologies I just assumed that the functionality was missing at work earlier! Both Terminals are 1.11.3471.0 on my work and home Windows pcs. Any case, you can probably close off this request!
Author
Owner

@DHowett commented on GitHub (Feb 4, 2022):

If I had to guess, you're using a high-DPI display? There's a really annoying issue where dragging only works over the top left corner of the window... but only on a high DPI display. The UI framework is sorta broken in this regard, and we don't know if we can fix it outside of a Windows update :(

@DHowett commented on GitHub (Feb 4, 2022): If I had to guess, you're using a high-DPI display? There's a really annoying issue where dragging only works over the top left corner of the window... but only on a high DPI display. The UI framework is sorta broken in this regard, and we don't know if we can fix it outside of a Windows update :(
Author
Owner

@TheWox commented on GitHub (Feb 4, 2022):

Dragging into the top left worked, thank you! (Seems to be in the top left quadrant) I use a 4k monitor on both my machines, but the work pc is on a version of Windows 10, while my home pc is the latest 11.

@TheWox commented on GitHub (Feb 4, 2022): Dragging into the top left worked, thank you! (Seems to be in the top left quadrant) I use a 4k monitor on both my machines, but the work pc is on a version of Windows 10, while my home pc is the latest 11.
Author
Owner

@fuweichin commented on GitHub (Mar 19, 2022):

For me, drag and drop file is not-allowed anyway.

Windows Terminal 1.11.3471.0
Windows 10.0.19044

Note: I disabled UAC completely.

@fuweichin commented on GitHub (Mar 19, 2022): For me, drag and drop file is not-allowed anyway. Windows Terminal 1.11.3471.0 Windows 10.0.19044 Note: I disabled UAC completely.
Author
Owner

@zadjii-msft commented on GitHub (Mar 21, 2022):

Note: I disabled UAC completely.

Yep, that'll do it. Drag/drop doesn't work for elevated windows at all, even when UAC is entirely disabled.

@zadjii-msft commented on GitHub (Mar 21, 2022): > Note: I disabled UAC completely. Yep, that'll do it. Drag/drop doesn't work for elevated windows at all, even when UAC is entirely disabled.
Author
Owner

@htcfreek commented on GitHub (Sep 14, 2022):

Note: I disabled UAC completely.

Yep, that'll do it. Drag/drop doesn't work for elevated windows at all, even when UAC is entirely disabled.

@zadjii-msft
Does this mean even if I only logged-in as administrative user with uac disabled?

@htcfreek commented on GitHub (Sep 14, 2022): > > Note: I disabled UAC completely. > > Yep, that'll do it. Drag/drop doesn't work for elevated windows at all, even when UAC is entirely disabled. @zadjii-msft Does this mean even if I only logged-in as administrative user with uac disabled?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#16648