I want to list the files in a folder but not sub-folders. DIR enables you to list specific types of files (hidden, archive ready etc) and also only folders but
DIR
dir /b /s /a-d
/s lists every directory and all subdirectories containing files, and (a-d) without empty directories.
/s
dir /b /s /a-d /p
/p pause
/p
dir /b /s /a-d > list.txt