echo off echo ******************************************************** echo ******************************************************** echo * echo * Executing the Windchill Clear Cache Script ... echo * Backup started at %time% on %date% echo * echo * echo * echo * echo ******************************************************** echo * echo * Stopping Windchill ... echo * echo * stop Windchill - 10.0 Server echo * and kill all java.exe processes echo * rem * Use this command for Windows Services * net stop windchill rem * Use This Command for running in Console Windows * rem %WC_HOME%\bin\windchill.exe -w "%WC_HOME%" --java="%JAVA_HOME%\jre\bin\java.exe" stop rem taskkill /im Java.exe /f rem taskkill /im xtop.exe /f echo ******************************************************** echo * rem echo * Stop the "Apache" service ... rem echo * rem * Use this command for Windows Services * net stop windchillapache TIMEOUT 20 echo ******************************************************** echo * echo * Clearing Apache Folder ... echo * rmdir /S /Q E:\ptc\Windchill_10.0\Windchill\tomcat\instances echo ******************************************************** echo * echo * Clearing Compiled Tasks Folder ... echo * rmdir /S /Q E:\ptc\Windchill_10.0\Windchill\tasks\codebase\com\infoengine\compiledTasks wait 5 echo ******************************************************** echo * rem * Use this command for Windows Services * net start windchillapache echo ******************************************************** echo * echo * Start the Windchill service and server AFTER CACHE CLEAN... echo * rem * Use this command for Windows Services * net start windchill time /T