@echo off
net stop Tomcat8
ping 127.0.0.1 -n 10
del /f /s /q "D:\Program Files\Apache Software Foundation\Tomcat 8.5\logs\*"
del /f /s /q "D:\Program Files\Apache Software Foundation\Tomcat 8.5\work\*"
rmdir /s /q "D:\Program Files\Apache Software Foundation\Tomcat 8.5\work\Catalina"
ping 127.0.0.1 -n 10
net start Tomcat8