Reads files in the C:\CreateFileListing folder and lists the filenames in CreateFileListingOutput.txt
@echo off dir "C:\CreateFileListing" /b > U:\CreateFileListingOutput.txt