How do I write a Batch file that will run in the Windchill Shell Environment?
I want to automate a series of Windchills task that I would normally carry out interactively using the Windchill Shell.
The Windchill Shell command shortcut appears to be:
C:\ptc\Windchill\bin\windchill.exe -w "C:\ptc\Windchill" --java="C:\ptc\Java\jre\bin\java.exe" shell
But if I put this as the first line in the Windows Batch file, it spawns a sub-shell with the Windchill Environment and hence any later commands in the batch file do not run in it.
It seems as if I need to specify a further argument to the Windchill.exe command line to refer to the commands that I want to run but this does not seem to be possible.
Can anyone advise me how to achieve this?
Thanks in advance
Gary

