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

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

Highlighted
Cat
Participant

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

1. Windchill All-IN-ONE Startup

rem Start Windchill Directory Server

D:

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

D:

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

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

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

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

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
Announcements

Thingworx Navigate content has a new home! Click here to access the new Thingworx Navigate forum! ______________________________ Check out the Windchill Tips Board! We're talking about Whirlpool's use of digital twin, augmented reality, and data-driven design!

The NAVIGATE WORKING GROUP is here! Come innovate with PTC!

Sign up for a Working Group