This question already has an answer here:
I need a list of all the files and folders in a folder. My end goal is to print out this list on paper. I don't want this to be recursive, so I don't need a list of the files in folders and the folder being searched. So for example there's folder name
foo and it contains the files
wombat and a folder called
crazy so I need the list to contain
I'm using Windows 7.