Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: convert .asp files to .htm


Message #1 by "Pedro Rodrigues" <rodriguepf@o...> on Thu, 13 Dec 2001 18:13:19
Does anyone knows how to convert an .asp file to a .html?

I know Xbuilder, but I'm not realy willing to purchase something that I'll 

use once in a lifetime... :(



Thanks.
Message #2 by "Walter Franssen" <walter@w...> on Fri, 14 Dec 2001 09:19:50
Just Use the FileSystemObject. it will cost you a few lines like this:





   



   Dim fso, MyFile, StrHTML

   

   StrHTML = "<HTML><h2>www.waltersworld.nl</h2></HTML>"



   Set fso = CreateObject("Scripting.FileSystemObject")

   Set MyFile = fso.CreateTextFile("c:\test.html", True)

   MyFile.WriteLine(StrHTML)

   MyFile.Close



Just try it


  Return to Index