SET date_time=%date%_%time% SET date_time=%date_time:/=% SET date_time=%date_time: =% SET date_time=%date_time:Thu=% SET date_time=%date_time:Fri=% SET date_time=%date_time:Sat=% SET date_time=%date_time:Sun=% SET date_time=%date_time:Mon=% SET date_time=%date_time:Tue=% SET date_time=%date_time:Wed=% SET date_time=%date_time::=% SET date_time=%date_time:.=% rem echo wc8_M020_dump_%date_time%.dmp rem 0. Shut Down Tomcat cd /d D:\wt\tomcat5\bin D:\wt\tomcat5\bin\wttomcat_stop.bat call D:\wc\wc8_dump\wait 60 rem 1. Shut Down Windchill cd /d D:\wt\Windchill_8.0\bin D:\wt\Windchill_8.0\bin\windchill.exe -w "D:\wt\Windchill_8.0" --java="D:\wt\jdk14\jre\bin\java.exe" stop call D:\wc\wc8_dump\wait 60 rem 2. Do your Oracle Dump cd /d D:\wc\wc8_dump exp system/manager@wind file=wc8_dump_%date_time%.dmp owner=wcuser log=wc8_exp_%date_time%.log call D:\wc\wc8_dump\wait 60 rem 3. Do your Aphelion Export cd /d R:\usr\var\lde\PTCLdap R:\usr\sbin\lde\export.exe -f R:\usr\var\lde\PTCLdap\PTCLdap_lde.conf copy R:\usr\var\lde\PTCLdap\PTCLdap_database\root.ldif D:\wc\wc8_dump\%date_time%_root.ldif copy R:\usr\var\lde\PTCLdap\PTCLdap_database\root.lde.db D:\wc\wc8_dump\%date_time%_root.lde.db call D:\wc\wc8_dump\wait 60 rem 4. Start Up Tomcat cd /d D:\wt\tomcat5\bin D:\wt\tomcat5\bin\wttomcat_start.bat call D:\wc\wc8_dump\wait 60 rem 5. Start Up Windchill cd /d D:\wt\Windchill_8.0\bin D:\wt\Windchill_8.0\bin\windchill.exe -w "D:\wt\Windchill_8.0" --java="D:\wt\jdk14\jre\bin\java.exe" start cd /d D:\wc\wc8_dump dir *.log *.dmp *root* >>%date_time%_file_list.txt