Post date: Jul 05, 2012 1:29:0 PM
forfiles -p "C:\WINDOWS\system32\LogFiles\W3SVC1" -s -m *.log -d "-7" -c "cmd /c del @path"
Create a batch file past that from above to it and schedule a task to run let say two or three times a week.
THE –d “-7” is the amount the days which should be kept so you can change if you want.