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
Use dir /B /A-D to get files only.
dir /B /A-D