开发者

Batch file for creating HTML pages

开发者 https://www.devze.com 2023-02-13 00:36 出处:网络
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

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

0

精彩评论

暂无评论...
验证码 换一张
取 消