Page 1 of 1

Batch template creator script snag

PostPosted: Tue Jan 27, 2009 6:13 pm
by joshhuggins
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 allEcho 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"
Template.TPL Output
Code: Select allDataCAD template file version 01.10.

11
*
D:\Users\JoshH\Desktop\RETAINING WALL TYPE 3.dsf
D:\Users\JoshH\Desktop\RETAINING WALL TYPE 4.dsf[/url]


PostPosted: Tue Jan 27, 2009 6:26 pm
by joshhuggins
Nevermind I was able to fake it by using
Code: Select allEcho DataCAD template file version 01.10. > "%CD%\Template.tpl"
Echo _>> "%CD%\Template.tpl"
Echo 3 >> "%CD%\Template.tpl"
Echo 11 >> "%CD%\Template.tpl"
Echo * >> "%CD%\Template.tpl"
dir *.dsf /b /s >> "%CD%\Template.tpl"
Guess Datacad is just looking to skip a line.