I need to pass a string from an asp form to a variable and write it to a new file. I cannot get intellisense to pull up the .write method. Please tell me what I'm doing wrong here as I know this is easy and have done in VB hundred times. Also, how do I add a wildcard/unique identifier w/ date and time to file name? Thanks,
Dim oFSO, oTS
Dim strXML
'Establish Connection & RecordSet objects
Set oFSO = Server.CreateObject("Scripting.FileSystemObject"
'set oTS = server.CreateObject("Scripting.Textstream"
strXML = Request.Form("Post_Accept"
'set oTS = oFSO.CreateTextFile
set oTS = oFSO.CreateTextFile("C:\lanlordreports\trojan_sweep_" &date &".xml"
ots.write strXML
Dim oFSO, oTS
Dim strXML
'Establish Connection & RecordSet objects
Set oFSO = Server.CreateObject("Scripting.FileSystemObject"
'set oTS = server.CreateObject("Scripting.Textstream"
strXML = Request.Form("Post_Accept"
'set oTS = oFSO.CreateTextFile
set oTS = oFSO.CreateTextFile("C:\lanlordreports\trojan_sweep_" &date &".xml"
ots.write strXML