What is the command to create a text file of all of the files in a folder?

Rubycon

Madame President
Aug 10, 2005
17,768
485
126
It's been a while since I have done this - CMD.EXE within Windows NT 5.1.
 

duragezic

Lifer
Oct 11, 1999
11,234
4
81
I thought a remember a command like that too, but anyway it seems if you do

dir /b /a:-d > files.txt

it more or less does the same thing.