Copy a file list as text from Windows Explorer

WindowsWindows Explorer

Windows Problem Overview


Is there a quick way to copy a list of filenames as text into the clipboard from Windows Explorer?

I can do it from the command prompt with dir > filenames.txt, but I am looking for something along the lines of Ctrl + C -> Ctrl + V.

Windows Solutions


Solution 1 - Windows

In Windows 7 and later, this will do the trick for you

  • Select the file/files.
  • Hold the shift key and then right-click on the selected file/files.
  • You will see Copy as Path. Click that.
  • Open a Notepad file and paste and you will be good to go.

The menu item Copy as Path is not available in Windows XP.

Solution 2 - Windows

If you paste the listing into your word processor instead of Notepad, (since each file name is in quotation marks with the full path name), you can highlight all the stuff you don't want on the first file, then use Find and Replace to replace every occurrence of that with nothing. Same with the ending quote (").

It makes a nice clean list of file names.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionTom HubbardView Question on Stackoverflow
Solution 1 - WindowsHaroon Khan NiaziView Answer on Stackoverflow
Solution 2 - WindowsDuane SchrammView Answer on Stackoverflow