Forum Moderators: phranque
I have about 20,000 files all on my computer and they are in a directory structure like this for example...
C:\bands\b\beatles\yesterday.txt
C:\bands\p\pink_floyd\comfortably_numb.txt
C:\bands\l\led_zeppelin\stairway_to_heaven.txt
And I need to take a listing of all the files in the bands folder to 1 single .txt file, that will look similar to the above example.
All the way from A to Z... just a .txt file, listing all the band folders and file names.
End result being a text file with the contents:
C:\bands\a\abba\angeleyes.txt
all the way to:
C:\bands\z\zz_top\waitin-for-the-bus.txt
Any idea how to do this?
Just remember to start it from the lowest point you want it to search, so if you want it to scan through C:\mybands then start it in that directory - if you want it to search the whole drive then start it in C:\.
dir /b /o:gn /s *.txt > myfilelist.txt
- Tony