Hi Guys, I've just had a customer come to me with a folder with over 4000 documents in it. What he wants is a simple txt file that lists all the names of these files. Like a txt log. I know there's a way of creating this is DOS, but I don't know how. Can anyone help ?

Thanks Lee.

Recommended Answers

All 2 Replies

C:\> dir /s >> files.txt
C:\>

And if you only want the file names then use:

dir /b > files.txt

:)

Edit:: You can also combine this one, with sknake's one:

dir /b /s > files.txt
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.