Trainzutil batch script parameter passing

MrLudo001

Member
I am tinkering with a TrainzUtil batch script and I have not been able to find any documented way of passing parameters to a batch file.

Ideally I would like to be able to do the following:

trainzutil @myscript.txt kuid [kuid...]

Alternatively perhaps to read a list of kuids to use within the batch script.

Is there any way know to do this or am I doomed to doing my parameter list processing in a wrapper script of some form and simply calling trainzutil with the set of commands I currently have in myscript.txt ?

The wrapper script would likely be a python script so I can levy the string and list processing offered by python to do what I want.

Any thoughts folks ?
 
Last edited:
The help for Trainzutil is obtained with -h or, I think, just Trainutil by itself. You could save that output by directing the output to some text file. Something like “trainzutil -h > help.txt”.
I may have the syntax wrong. I recall there was help for a list contained in a plain text file such as a list of kuids.
 
Yeah I have already gone through the entire help text and the wiki entry for TrainzUtil but there is nothing I have spotted that does what I need. I have created a python script that sanitizes a set of input kuids, derives the most up to date versions of the assets and then optionally creates an exportable CDP file. It does the task I require now. It could do with some optimization but it works well now.
 
Back
Top