Free for PREMIUM members
Go Premium for a chance to win a PS4. Enter to Win
Set oFS = Server.CreateObject("Scripting.FileSystemObject")
Set oFile = oFS.CreateTextFile("c:\inetpub\wwwroot\filename.csv", true)
' code to get recordset results for the csv file's contents
' the recordset object is called rs in my code below
' fields are named as I have above in the "header row"
' none of the field values or header stuff is in quotes right now ...
' but that can be added if required
While NOT rs.EOF
oFile.WriteLine (rs("Name") & "," & rs("Phone") & "," & rs("Email"))
Set oFile = Nothing
Set oFS = Nothing
Open in new window
We value your feedback.
Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.
One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.