I am making a list, in MS Word, of existing documents involved in a project I’m working on. Because of naming conventions etc the document names, as listed in Windows Explorer are the same as the generally used title and the same as would be used in normal conversation. What would make my life much easier would be if I could copy, from Windows Explorer, the list and then paste it as a list in the Word doc where I could use and manipulate it as text. On the two attempts all I succeeded in doing was actually opening the listed documents.
Is this action possible and, if so, how is it done?
Thank you very much.
Not directly through Windows Explorer, no. There are programs out there, some that are free, which allow you to print and/or create text files from your directory listings. I used to use one called – creatively enough – Directory Printer.
You can select a list of files, shift-right-click, and select “Copy As Path”. The problem is that it copies the entire path of the files, not merely the name, like this:
“R: est\file1.txt”
“R: est\file2.txt”
From there you could set up a quick&dirty Excel sheet with a few formulas to remove all of the path except the file name?
Edit: Contrary to what Asimovian said, the shift-right-click shortcut is built-in to Explorer, it doesn’t require any plug-ins or downloads. If you were worried about that.
You can shift+right-click on the directory and select ‘Open command window here’
At the prompt type dir /S > filelist.txt and enter, the file will be in that directory.
That will put a list of the files in mydirectory into the file mylist.txt, which you can then put into your Word document. If you don’t want all of the files, you could limit them, like using f* to get only filenames starting with the letter f, for example.
This. Although an easier way to clean up your list so that you only have the file names is to copy the file names in the way described by Blakeyrat, then paste that into your Word document. You’ll have your list, but with the whole path.
Then copy the path (everything but the file name) from one of the items on the list. Press CTRL-H (for find and replace), paste the path into the “find what” box, and leave the “replace with” box empty. Then click on “Replace All,” and there you are – you’ll have a list of nothing but file names, with no messing around with Excel formulas. You’ll have quotation marks around the file names, but you can delete them using Find and Replace just like you deleted the path.
Oh, thank God I’m not crazy. I read that earlier and was like, “but I’ve been installing a powertoy for that function for years, and all I had to do was … ?”
It saddens me to learn there are so many people still on XP…
The reason I didn’t know whether or not it worked on XP is simply that I haven’t *used *XP in 5 years, and I no longer remember what features it did or did not have. Anyway, sorry for any confusion.