Question

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.

Was it helpful?

Solution

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.

OTHER TIPS

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.

I am not certain, but I'd have a look at the source code for Karen's Directory Printer from the venerable "Karen's Power tools".

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top