Recently I had a problem where I wanted a quick listing of folders and placing them into Excel. There were numerous solutions using Macros, however this seemed a bit complicated. So I decided to use a command line only solution. It took ONE line of code to do. Solution is after the break!Read More Below...
dir /b > filelist.txt
Thats it all the contents were put into the file filelist.txt
If you want EVERYTHING including what’s in the sub directories try
dir /b /s > filelist.txt
OR how about just files ending in jpg?
dir /b /s */jpg > filelist.txt
Not too hard is it? In addition it’s fast taking a second or two for thousands of files. Granted this does not give you dates, but that could be done in the various other solutions.
No user commented in " Getting a text list of files "
Follow-up comment rss or Leave a Trackback