Batch file for creating HTML pages
I have an existing website of 1100 pages. Each page has the same layout, but I need to use a template from dreamweaver to create the new page开发者_如何学编程s. How can I create 1100 blank HTML pages without having to manually create them. I would like to use the layout from my new template in dreamweaver.
Get c# to do the same thing you would manually. That’s the best part about .NET — it can automate most Windows systems.
Pseudo-code:
Read your template into var a
make replacements you need to on var a into var b
write file b to where you need it
http://msdn.microsoft.com/en-us/library/system.io.aspx
精彩评论