从文件资源管理器复制一个文件列表作为文本

有没有一种快速的方法可以从 文件资源管理器中将文件名列表作为文本复制到剪贴板中?

我可以使用 dir > filenames.txt在命令提示符下完成它,但是我正在寻找类似于 Ctrl + C-> Ctrl + V的内容。

173825 次浏览

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.

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.