- Messages
- 290
- Country

Hi,
i normaly use a batch-file to run the xtomdl.exe, cause it is easyer the running the cmd all the time
Now im starting to deal with more and more model and i tought... why not make it easyer again.
What im planing is to use a single .bat and just change the name of it to match the .x-file name, then execute it.
The batch has the name XXXX_xtomdl.bat, where ill just interchange the XXXX to match the name of the .x-file that I want to process.
For that i know that the command "tokens=1 delims=_" needs to be used, but how???... a 'FOR'-command?... i just dont know.
So again in short.
-I start the XXXX_xtomdl.bat
-it looks for the 1. tocken bevor the _
-it writes the content of the token to the var %f
-it exutes the following line:
XtoMdl.exe /XANIM /DICT:..\..\bin\modeldef.xml %f.x
Thats the plan, so i only need to change XXXX of the bat.
Somebody still into BATCH code?
i normaly use a batch-file to run the xtomdl.exe, cause it is easyer the running the cmd all the time
Now im starting to deal with more and more model and i tought... why not make it easyer again.
What im planing is to use a single .bat and just change the name of it to match the .x-file name, then execute it.
The batch has the name XXXX_xtomdl.bat, where ill just interchange the XXXX to match the name of the .x-file that I want to process.
For that i know that the command "tokens=1 delims=_" needs to be used, but how???... a 'FOR'-command?... i just dont know.
So again in short.
-I start the XXXX_xtomdl.bat
-it looks for the 1. tocken bevor the _
-it writes the content of the token to the var %f
-it exutes the following line:
XtoMdl.exe /XANIM /DICT:..\..\bin\modeldef.xml %f.x
Thats the plan, so i only need to change XXXX of the bat.
Somebody still into BATCH code?




