Here you go: windows - How to export a directory list from command prompt? - Super User