Using the DIR command and redirecting to a text file certainly can work and DIR /s will even do subdirectories however, under NT4.0 and later, the TREE command can produce a much nicer listing.
TREE /f will files as well as folders and TREE /a will draw the 'branches' using standard ACSII characters rather than enhanced line drawing characters. Putting it all together:
TREE c:\stuff /a /f > files.txt will create the file "files.txt" which will contain a nice, heirarchal listing of all the files in C:\stuff and all subfolders.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.