Obtaining a directory listing

P

Pat

I would like to paste the names of all files in a given
directory into a Word document. Is this possible?
 
D

Doug Robbins - Word MVP

See the article "Insert into a document the names of all files in a selected
folder" at:

http://word.mvps.org/FAQs/MacrosVBA/InsertFileNames.htm


--
Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.

Hope this helps
Doug Robbins - Word MVP
 
K

KePaHa

Go to a command prompt (Start, Run, cmd, OK). Change to the desired directory. Type dir >> c:\list.txt and press Enter. You now have a file named list.txt containing the name, size, and mod date of all files in the folder.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top