|
daddydave
|
 |
« on: December 12, 2008, 01:51:47 PM » |
|
This is my first post, and it doesn't really seem right for my first post to be asking for something!  I may have a candidate for a coding snack, though. Here is my idea. In every version of Windows from Windows 95 to Windows XP, I found that I could drag a file from Windows Explorer into a cmd window and Windows would put the path to the file on the command line. This worked with both executables and data filenames. I think this was extremely handy if you use any command line tools at all, especially with the length of directory paths these days. Vista broke this functionality just to be mean*, maybe someone knows an easy way to make something that would restore this functionality in Vista. (And yes, I know you can work around it by holding down Shift and right clicking on the file and choosing Copy as Path, so if this coding snack never gets...munched on? I will live.)
|
|
|
|
|
Logged
|
|
|
|
|
f0dder
|
 |
« Reply #1 on: December 12, 2008, 04:40:19 PM » |
|
Don't worry about your first post being a request, you posted it in a nice tone rather than "GIMME I DESERVE THIS!" :-) I think the problem might have something to do with console applications running under ClientServer Runtime System (CSRSS)... an CSRSS runs as a system service (ie., higher privilege than even user accounts with admin privileges), and iirc Vista disables communication between lower- and higher-privilege applications. I'm not 100% about this though, but it would explain why the functionality was dropped.
|
|
|
|
|
Logged
|
 - carpe noctem
|
|
|
|
skrommel
|
 |
« Reply #2 on: January 08, 2009, 05:43:54 PM » |
|
 Try DropCommand! DropCommand - Enables drag and drop of files to a command window in Vista. Features: - Drop multiple files.  You'll find the downloads and more info at 1 Hour Software by Skrommel. Skrommel
|
|
|
|
|
Logged
|
|
|
|
|
|
daddydave
|
 |
« Reply #3 on: January 08, 2009, 06:46:52 PM » |
|
|
|
|
|
|
Logged
|
|
|
|
|
basementjack
|
 |
« Reply #4 on: January 09, 2009, 09:53:29 PM » |
|
Skrommel - how does dropcommand work - is it making a one time change (ie registry?) or is it something we need to run each time?
|
|
|
|
|
Logged
|
|
|
|
|
skrommel
|
 |
« Reply #5 on: January 09, 2009, 09:58:57 PM » |
|
 You need to keep it running. DropCommand places an OLE enabled window underneath the mouse pointer whenever it hovers over a command window, and then copies and pastes the files dropped to the command line.  It could even be extended to accept dropped text. Skrommel
|
|
|
|
« Last Edit: January 23, 2009, 07:04:16 PM by skrommel »
|
Logged
|
|
|
|
|
mabra
|
 |
« Reply #6 on: February 20, 2009, 04:48:59 AM » |
|
Hi !
I tried DropCommand on a windows server 2008. Its running and staying in the tray. But if I dro a file from the explorer to an open dos window, nothing happens and I see the usual "blocked" symbol.
Waht can I do??
Thanks--mabra
|
|
|
|
|
Logged
|
|
|
|
|
war59312
|
 |
« Reply #7 on: April 19, 2009, 08:52:15 AM » |
|
Nice tool, but the sound effect is very annoying. Option to disable it please?
|
|
|
|
|
Logged
|
|
|
|
|
f0dder
|
 |
« Reply #8 on: April 20, 2009, 05:11:30 PM » |
|
Skrommel: so it clobbers the clipboard?
|
|
|
|
|
Logged
|
 - carpe noctem
|
|
|
|
skrommel
|
 |
« Reply #9 on: April 29, 2009, 08:38:03 PM » |
|
 @mabra: Is the command window's class called ConsoleWindowClass? @war59312: No option unless you edit the source code or empty the wav file. Just create an empty text file and rename it to DropCommand.wav. @f0dder: It restores the clipboard after the drop is complete. Skrommel
|
|
|
|
|
Logged
|
|
|
|
|
f0dder
|
 |
« Reply #10 on: April 30, 2009, 01:49:43 AM » |
|
@f0dder: It restores the clipboard after the drop is complete. 
|
|
|
|
|
Logged
|
 - carpe noctem
|
|
|
|
Curt
|
 |
« Reply #11 on: November 05, 2009, 01:29:22 PM » |
|
@skrommel: On your page, 'DropCommand' has wrongly been named "RunToClose" (the second one).
|
|
|
|
|
Logged
|
Remember what you said, because in a day or two, I'll have a witty and blistering retort! You'll be devastated THEN!
|
|
|
|
daddydave
|
 |
« Reply #12 on: November 05, 2009, 08:35:56 PM » |
|
Ha! I can't believe it! Microsoft restored the original functionality in Windows 7!
|
|
|
|
|
Logged
|
|
|
|
|
f0dder
|
 |
« Reply #13 on: November 06, 2009, 11:38:43 AM » |
|
Ha! I can't believe it! Microsoft restored the original functionality in Windows 7!
A lot of things happened internally from Vista to Win7, so it's probably more a question of cmd.exe no longer running in the security context of CSRSS rather than "MS fixed it" 
|
|
|
|
|
Logged
|
 - carpe noctem
|
|
|
|
daddydave
|
 |
« Reply #14 on: April 27, 2010, 11:19:42 PM » |
|
@skrommel: On your page, 'DropCommand' has wrongly been named "RunToClose" (the second one).
I noticed that, and went and found this thread again to figure out why the name changed. You can see the incorrect name here. The name is correct at the top of the page, only incorrect at the screenshot.
|
|
|
|
|
Logged
|
|
|
|
|
CrawlerBrinx
|
 |
« Reply #15 on: October 07, 2012, 06:09:13 PM » |
|
Hey, how about to make the tray icon more useful? it would be nice if double click would open the console instead of an "about" window. I'm also not sure if that is possible, but it would nice to be able to drag-n-drop a file directly to the tray icon of the script, so it would open a new cmd window and paste the dropped file's path there.
|
|
|
|
|
Logged
|
|
|
|
|