cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

We are happy to announce the new Windchill Customization board! Learn more.

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

Cat
5-Regular Member
5-Regular Member

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

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 2
Invisigoth
14-Alexandrite
(To:Cat)

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

BineshKumar1
12-Amethyst
(To:Cat)

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
Top Tags