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

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

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

Cat
10-Marble
10-Marble

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
16-Pearl
(To:Cat)

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

BineshKumar1
13-Aquamarine
(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
Announcements


Top Tags