Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Copy a file list as text from Windows Explorer [closed]

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.

like image 734
Tom Hubbard Avatar asked Jul 27 '09 10:07

Tom Hubbard


People also ask

How do I export a list of files from a folder to text?

Right-click that folder and select Show more options. Click Copy File List to Clipboard on the classic menu. You'll still need to paste the copied list into a text file. Launch Run, type Notepad in the Open box, and click OK.

Is there a way to Copy a list of filenames?

Press "Ctrl-A" and then "Ctrl-C" to copy the list of file names to your clipboard.

How do I get a list of files from Windows Explorer?

Select all the files, press and hold the shift key, then right-click and select Copy as path. This copies the list of file names to the clipboard. Paste the results into any document such as a txt or doc file & print that.

Is there a way to print a list of files in a folder?

To print all of the files in a folder, open that folder in Windows Explorer (File Explorer in Windows 8), press CTRL-a to select all of them, right-click any of the selected files, and select Print. Of course, you can also select a few specific files and print them the same way.


2 Answers

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.

like image 93
Haroon Khan Niazi Avatar answered Oct 06 '22 07:10

Haroon Khan Niazi


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.

like image 31
Duane Schramm Avatar answered Oct 06 '22 07:10

Duane Schramm