I'll confess that I was never all that good at writing DOS Batch scripts beyond basic stuff. I've had need to write a script to read an HTML template file and create a new file from it... Now I can read the file into a variable using:
for /f "delims=" %%x in (template.html) do set fileData=%%x
and I can echo the variable out to see that the html data is in there. But when I try to write it out using:
echo %fileData%>test2.html
I get an error:
The system cannot find the file specified.
I'm not sure if it has anything to do with the variable containing html tags that are confusing the output to file?