I need a batch file to list files stored in a folder but without the ones present in the subfolders?
for %%i in (Y:\Files\*.*) do echo %%~ni >> D:\List_of_files.txt
To have a sorted list (alpahabetically).
for %%i in (Y:\Files\*.*) do echo %%~ni | sort >> D:\List_of_files.txt
Published by jak58
Latest update on October 1, 2012 at 10:56 AM by jak58.