Date: | November 24, 2003 / year-entry #140 |
Tags: | tipssupport |
Orig Link: | https://blogs.msdn.microsoft.com/oldnewthing/20031124-00/?p=41733 |
Comments: | 17 |
Summary: | The command prompt is a drop target: Dropping a file onto it inserts the filename. |
The command prompt is a drop target: Dropping a file onto it inserts the filename. |
Comments (17)
Comments are closed. |
How come I didn’t know that? Thanks Raymond!
The annoying thing is that the window doesn’t get focus. So you select something (eg from Explorer) and drag-drop it on to the cmd window, then hit <enter>
Too bad if the CMD line said "notepad " and you drag-dropped "format_hard_drive.vbs", because you just RAN the script rather than edited it :-(
This is not only annoying, it’s inconsistent with other applicatins (eg, drag-drop from Word to Excel, and Excel gets the focus)
The window gets focus when I try it under XP.
The window gets focus when I try it under XP.
You can do the same thing with the Start|Run dialog. :)
Raymond,
Why was a keyboard shortcut never created for use in Windows Explorer that allows you to create a new folder?
Aggravating when you are creating a bunch of new folders to have to right click, select New, wait for all the stupid templates to load, then select New Folder. You can rename files via F2, why wasn’t a shortcut ever created for New Folder?
Alt-f-w-f will create a new folder quickly via the file menu. Creating new folders isn’t something one usually has to do a lot, I suspect. Not enough to memorize a ctrl-code for, anyway.
It depends how you do your archiving. At present, my employer doesn’t use source control…
…waits for everyone to get back on their chairs…
…so we make daily backups of our projects to a shared server using a folder with that day’s date. OK, if it’s a spike, I might not back up for a few days – in a source control system, I would branch, spike on that branch, then either merge the branch or obliterate it.
So I end up doing New Folder quite often.
Raymond, a really really useful coding one would be opening a URL in the web browser control, then making it so when you click any of the anchors, they are handled differently (like opened in a different browser, or just put in a message box) rather than handled by that control.
I would LOVE to see code to do that in C/C++. Wrapping my head around the internals of the WebBrowser object took a lot more time than I was thinking it would.
Is there a way to paste to the command-line? Currently I have to do Left Alt+Spacebar, E, P. (NB: Right-Alt won’t work with the US-International keyboard layout).
It would be nice if Ctrl-V worked, although I guess it conflicts with some ancient command-line apps. I’m really looking forward to msh. I hope it’s a clean break from the bad old DOS days!
Is there a way to paste to the command-line? Currently I have to do Left Alt+Spacebar, E, P. (NB: Right-Alt won’t work with the US-International keyboard layout).
It would be nice if Ctrl-V worked, although I guess it conflicts with some ancient command-line apps. I’m really looking forward to msh. I hope it’s a clean break from the bad old DOS days!
In Win2K, right click in the "CMD" window and whatever text is in the clipboard will be copied to that window.
While on the subject of mouse movement…
Why is it that in Windows XP & 2003 it’s no longer possible to select items from dropdown combo boxes using a single click/move/release motion? If you attempt this, it just moves the list’s focus rectangle around (huh?), and nothing happens when you release the button.
I’d love to know the reasoning behind the change, or if it’s simply a bug…
Mike: I have an empty folder called Spare on my Desktop and in drives and folders where I need new folders often or quickly. Then I can just Copy’n’Paste it, or drag’ndrop with Ctrl held.
In my case, this is much faster than Create New Folder because something (not sure if it is a 3rd party add-on or a Microsoft feature I’ve turned on) causes Explorer to "lock up" for up to a minute before I can rename the new folder. This doesn’t happen with copied folders.
Jordan,
I think it only works on certain combos, as the drop down combo in IE 6.x supports that under WinXP. But I have noticed that the behavior is inconsistent across applications.
The keyboard shortcut to create a new folder is Alt+F,W,F. I use it all the time.
Commenting closes after two weeks.
http://weblogs.asp.net/oldnewthing/archive/2004/02/21/77681.aspx