Skip to main content
1-Visitor
March 30, 2016
Question

Windchill All-IN-ONE Startup & Windchill All-IN-ONE Shutdown - Batch Script

  • March 30, 2016
  • 2 replies
  • 3459 views

1. Windchill All-IN-ONE Startup

rem Start Windchill Directory Server

😧

call D:\ptc\Windchill_10.2\WindchillDS\server\bat\start-ds.bat

rem Start Apache HTTP Server

cd D:\ptc\Windchill_10.2\HTTPServer\bin

start httpd.exe

rem Start Windchill

cd D:\ptc\Windchill_10.2\Windchill\bin

windchill.exe -w "D:\ptc\Windchill_10.2\Windchill" --java ="D:\ptc\Windchill_10.2\Java\jre\bin\java.exe" start

rem Exit

2. Windchill All-IN-ONE Shutdown

rem Stop Windchill

😧

cd D:\ptc\Windchill_10.2\Windchill\bin

windchill.exe -w "D:\ptc\Windchill_10.2\Windchill" --java ="D:\ptc\Windchill_10.2\Java\jre\bin\java.exe" stop

rem Stop Windchill Directory Server

call D:\ptc\Windchill_10.2\WindchillDS\server\bat\stop-ds.bat

rem Stop Apache HTTP Server

taskkill /F /IM httpd.exe

rem exit

2 replies

1-Visitor
May 13, 2016

Real life, tried and true examples are always tops in my book. Thank you for sharing!

2-Explorer
May 13, 2016

Cool stuff!

I would add two things

  1. in the start up a slight delay after firing start for Windchill DS, say a ping to local host for about 15 seconds.
  2. In the stop, at the end right after taskkill for Apache, do a taskkill /F /IM java.exe or the custom java process. This will clear any zombie java  process