steveg
02-25-2003, 10:14 AM
OK, can anybody see anything wrong with the code below.
I need to pass through a value that is used as part of a filename and the text that I want this file to contain, its not working though.
<SCRIPT type="text/vbscript">
<!--
function sendalot(sess_id, texttosend)
dim filenamex
filenamex = "c:\" & trim(sess_id) & ".sal"
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
Set objTS = objFSO.CreateTextFile(filenamex)
objTS.WriteLine(texttosend)
objTS.Close
Set objTS = Nothing
Set objFSO = Nothing
end function
-->
</SCRIPT>
I thought this would be straight forward but its causing me a few problems.
Thanks
Steve.
I need to pass through a value that is used as part of a filename and the text that I want this file to contain, its not working though.
<SCRIPT type="text/vbscript">
<!--
function sendalot(sess_id, texttosend)
dim filenamex
filenamex = "c:\" & trim(sess_id) & ".sal"
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
Set objTS = objFSO.CreateTextFile(filenamex)
objTS.WriteLine(texttosend)
objTS.Close
Set objTS = Nothing
Set objFSO = Nothing
end function
-->
</SCRIPT>
I thought this would be straight forward but its causing me a few problems.
Thanks
Steve.