I need to Restart my windchill service. currently windchill stop and windchill start commands are using in windchill shell. I need to write batch file for this operation. After doing some research I decided to write like this..
NET STOP windchill stop
:: Also I have to set some buffer time for service stopping
NET START windchill start
If windchill is not running as a service:
The conditional
&&will only allow execution ofwindchill startifwindchill stopwas successful. In other words, returns%errorlevel%of1If you want to rely on a timeout, then use
timeoutand hope it does not take long.where above example times out for 10 seconds.