How to generate .fem file from .hm [Optistruct]


I am looking to write a windows batch file or linux script that would generate an Optistruct .fem input file given an .hm file. I looked through the hwsolver/scripts available in Windows versions but it was not obvious as to what to do for this. Could some help or direction be provided on this?
Thank you!


Thank you for the reply. I have another question and you must excuse my ignorance. I am a linux user and I find that you have both forward and backward slashes in your script and command. Which should I use? I am using windows 7 (have not used it much) and it has '\' and not '/' in the commandline/dos prompt.
Thank you.

Thank you for the reply. I have another question and you must excuse my ignorance. I am a linux user and I find that you have both forward and backward slashes in your script and command. Which should I use? I am using windows 7 (have not used it much) and it has '\' and not '/' in the commandline/dos prompt.
Thank you.
In Linux world, it's so simple: use '/' everywhere /emoticons/default_smile.png' srcset='/emoticons/smile@2x.png 2x' title=':)' width='20' />
hi, a sample windows batch file:
'C:\Program Files\Altair\2017\hm\bin\win64\hmopengl.exe' -batchmesher -noconsole -tcl 'C:\export_to_fem.tcl'
a sample export_to_fem.tcl :
*readfile 'C:/your_hmfile.hm'
*feoutputwithdata 'C:/Program Files/Altair/2017/templates/feoutput/optistruct/optistruct' 'C:/your_femfile.fem' 1 0 2 1 1
exit