Working with the command prompt
is one of an IT Professional’s required skills. In previous windows
operating systems, one could drag
and object to an open command prompt
window in order to ease our work. This feature was nice to have especially when running executable files nested deep within a folder hierarchy. Instead of manually navigating the command prompt
path to the required folder, you could simply drag
the necessary file to the Run option or to the command prompt
and press Enter to run it.
Somehow, this useful feature wend away in windows
Vista and windows
Server 2008. I wrote about this in my Missing drag
in Vista command prompt
article. In Vista/2008, if you try to drag
a file from anywhere in windows
Explorer to an open command prompt
window you see that the pointer icon changes to a “no entry” symbol:
When asked, Microsoft officials provided dull answers and claimed that this is “by design” and that it was in fact “a feature”. Some claimed that “This was done to reduce the command
window's dealings with the dragged data object”. This last excuse is, in my opinion, pure crap especially when compared to the huge overhead provided by other so-called “advanced” features of Vista such as the process-intensive Aero theme (read my Aero Theme is bad, disable it article or to the huge overhead of the TCP Window Auto tuning functionality that wrecks havoc to your network copy and browse functions (read my Browsing websites and downloading files is painfully slow with windows
Vista. Other answers included things like “you can shift-right-click to get the copy as path function instead” (read my Quickly Copy File and Folder Path in windows
Vista. Another claim was that the drag
feature was dropped because it poses a “security risk”. Maybe, I don’t know, but since it’s
been present since the days of older operating systems I don’t see why it wasn’t removed before if it was such a huge security risk.
You can imagine that I did not have high expectations set when I booted up my windows
7 (currently beta build 7000) virtual machine and fired a CMD window. I tried dragging a file name onto the open CMD window, and behold, it works!
Other methods worth mentioning are also listed in my How can I quickly copy a file or a folder's path in Windows Vista?
article which describes a trick that still works in windows
Open a windows
Explorer windows, browse to the required file. Hold the SHIFT key while you right-click the folder. الموضوع الأصلى من هنا: منتديات سيسكو التعليمية | كن بين الخبراء ! http://www.ciscovb.com/vb/t1621.html#post12071
You can now paste the copied path anywhere you want, including to a command prompt
Drag and Drop to Command Prompt – ItMs Back in Windows 7! back command drag drop itMs prompt windows