Open a command prompt window, browse to the desired directory and type:
dir /A-D /B >> c:\filename.txt
where filename is the desired name of the list.
Alternatively, this will create a list of folders:
dir /AD /B >> c:\filename.txt
http://www.computerhope.com/issues/ch000772.htm
– Main.FredPettis - 2012-02-10