Copy a file list as text from Windows Explorer

Tom Hubbard picture Tom Hubbard · Jul 27, 2009 · Viewed 130.6k times · Source

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.

Answer

Haroon Khan Niazi picture Haroon Khan Niazi · Jul 25, 2013

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.