Output the contents of a folder to a text file
Collegue has a requirement to form an index of the contents of a folder. He has a large folder full of .pdf documents, all of which have "fully descriptive" hence long file names.
I did a search and came up with something from 2000 using the dos prompt, and listing the directory then using the > command to generate filename.txt. can't get this to work comes up as unknown command. Am I missing something or is this a feature of the psuedo dos implementation in XP. If this is so, how can I produce a listing of the contents of a folder that will subsequently be editable in word or notepad etc? |
I hope that I have interpreted your problem correctly. Please try:
dir /b >> foo.txt BOFH |
Ah thank you works perfectly just what was required
|
One uses a single chevron i.e.
dir /b > name.txt |
IO540
you are quite right. >> appends. BOFH |
All times are GMT. The time now is 20:29. |
Copyright © 2024 MH Sub I, LLC dba Internet Brands. All rights reserved. Use of this site indicates your consent to the Terms of Use.