Get lengthy paths to the command line

From The IT Community
Jump to: navigation, search




When working at the command line you'll often need to access files, which usually means typing lengthy paths and hoping you've got them right.


But Windows 7 and 8 offer an easier way.

Simply drag and drop the file onto your command window and the full path will appear, complete with quotes and ready to be used.


This feature isn't entirely new: you could do this in Windows XP, too, but drag and drop support disappeared in Vista. There does seem to be a new Windows 7 complication, though, in that it only seems to work when you open the command prompt as a regular user. Run cmd.exe as an administrator and, while it accepts dropped files, the path doesn't appear.



Was this article helpful? Then please donate to keep The IT Community alive...

If you found this article helpful please share it, comment and help others by writing your own article.






Translate this page:




Articles found in the same category:
(max. 20 shown)