I am sorry, you wanted dirlist.txt. So use:
dir >> dirlist.txt
where dir is the command for directory>> means to pipe the output and APPEND
dirlist.txt of course is the file you are exportin to and it will reside in your current directory, or you could put it anywhere you want....
D:\>dir c:\temp >> f:\mydir\dirlist.txt