I want to list files in a folder, but not subfolders. DIR allows you to specify specific file types (hidden, ready-made archives, etc.), as well as folders only, but I donβt see how to list only files.
I need the following statement to return files for further processing, but the folder names are confused!
for /f %%a in ('dir /b %csvPath%') do ( )
windows cmd
RichGK Aug 23 '11 at 16:15 2011-08-23 16:15
source share