-
Notifications
You must be signed in to change notification settings - Fork 8.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Drag and Drop of .Bat file to terminal #3014
Comments
This almost certainly won't be possible, since the Terminal doesn't really know anything about what application is running in it. If the application is cmd.exe, sure this is easy. Even powershell isn't that hard. But what about WSL? Or the Azure Cloud Shell Connector / ssh, which could be connected to anything, what do we do then? Plus, with the auto-executing of these commands, that seems like it might be a bit of a security risk to me. There's also #904 which will probably get you 90% of the way there. |
Definitively #904 seems to be what is actually wanted there. This is also what happens in the regular console: dragging & dropping a file in a console/terminal just simulates keypresses corresponding to the letters of the full path to the file. |
Maybe instead of auto executing, a text editor like vim or notepad could be executed editing the file? For instance in WSL: That's my brief idea on it. Though I can see multiple problems with it already so I'm pretty neutral. |
This is a more dangerous way to suggest /dup #904 😄 |
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! |
Drag and drop .bat file to Windows PowerShell/CMD and start execution of script. This will make running of .bat scripts much more convenient.
The text was updated successfully, but these errors were encountered: