I need to create a Batch file for keeping the 6 latest files in a directory. I have a prototype but need some help with the commands used.
for /f "skip=6 eol=: delims=" %F in ('dir /b /o-d /a-d *.pdf') do @del "%F"
What do /f,eol, and delims do in this script snippet? Can anyone explain or point me to where I can find more information?