@echo off echo *********************************************** echo start time %DATE% %TIME% echo *********************************************** echo Start closing the service net stop Tomcat-DPlatform-Server echo service has been closed echo *** echo start clean up catching rd /q/s "D:\tomcat\ydkq-tomcat-server\work\Catalina" echo clean up end echo start clean up temp for /f "delims=" %%a in ('dir /ad/b/s D:\tomcat\ydkq-tomcat-server\temp') do (rd /q /s "%%a")>nul rem del /q/s "D:\tomcat\ydkq-tomcat-server\temp\*.*" echo clean up end echo Start the start of the service net start Tomcat-DPlatform-Server echo service has been started echo *********************************************** echo end time %DATE% %TIME% echo *********************************************** |