
March 30th, 2000, 02:51 AM
|
|
Contributing User
|
|
Join Date: Dec 2002
Posts: 14,575
  
Time spent in forums: < 1 sec
Reputation Power: 22
|
|
|
<i><b>Originally posted by : Chris Snider (csnider@worldnet.att.net)</b></i><br />Mike,<br /><br />You can use the Scripting.FileSystemObject (FSO) to write the output of teh asp code to. Since you would normally do a Response.Write "some stuff and html code" for each line, you can use the Filesystemobject ot open a text stream to a file and write the data to file instead of the response object. After all processing has taken place, you can Response.Redirect "the newly created file". <br /><br />If you have to have the same code generate identical files with different names, write the initial file, then use the .FileCopy method of the FSO to make the copies with new names.<br /><br />If the code produces multiple files with different names and different content all in one pass, put the HTML file writer piece into a sub or function and pass the data to it as required.<br /><br />If you need further explanation or comments, please email me.<br /><br />Chris Snider<br /><br /><br />------------<br />Mike at 3/23/2000 2:59:47 PM<br /><br />I need to save an ASP page as an HTML file multiple times (so they must have different names each time), and then be able to the .html files to view.<br /><br />
|