Batch template creator script snag
Posted: Tue Jan 27, 2009 6:13 pm
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]