Drag And Drop Files Onto The Command Line In Windows 7

Posted by on Feb 4, 2010 | One Comment

Here is a nifty tip for those of you who use the command line.

Some commands require the full path to a specific file. If the file path is long, it can be a challenge typing in the path without making an error. If you work with the command line, you know any small typo means the command will not work.

So here is the tip… next time you need to type in a lengthy file path, simply locate the file, and drag and drop it into the command window. The full path to the file will appear in the command line, including quotes.

  • Tom K

    Thanks for the great tip. This is a great way to quickly type out full path and file names. I would also like to remind people that from Windows Explorer, you can open a command prompt in the selected folder by right clicking on that folder while pressing the Shift key. The option “Open Command Window Here”. A command prompt will open pointing to the selected folder.