I am creating a batch file to create templates for all of our symbol folders so we can use the template library macro to catalog our symbols. I've hit a little snag I can't seem to find an answer to. The Datacad template format uses a return between the template file version and the X division value. I can't seem to find a way to get a batch file to add the required return. Any ideas? The only thing I found online suggested using "\\n" which provides a return for the echoed command on the screen but not to the tpl file.. Here is my script. TIA
Code: Select all
Template.TPL OutputEcho DataCAD template file version 01.10. > "%CD%\Template.tpl"
Echo "\\n"
Echo 3 >> "%CD%\Template.tpl"
Echo 11 >> "%CD%\Template.tpl"
Echo * >> "%CD%\Template.tpl"
dir *.dsf /b /s >> "%CD%\Template.tpl"
Code: Select all
DataCAD template file version 01.10.
3
11
*
D:\Users\JoshH\Desktop\RETAINING WALL TYPE 3.dsf
D:\Users\JoshH\Desktop\RETAINING WALL TYPE 4.dsf[/url]
Last edited by joshhuggins on Thu Feb 12, 2009 12:50 pm, edited 1 time in total.
Thanks! - Josh
Do. Or do not. There is no try.
Josh's Digital Downloads is come back online soon. Stay tuned. (soon is a relative term)
Do. Or do not. There is no try.
Josh's Digital Downloads is come back online soon. Stay tuned. (soon is a relative term)