@set LogDir=D:Log for /f "skip=10" %%i in ('dir %LogDir%apache-access-*.log /tc /o-d /b') do del %LogDir%\%%i