
Using VBScript with Personal Web Server
<%
Const ForReading = 1, ForWriting = 2, ForAppending = 8
Dim fso, f
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.OpenTextFile( server.mappath("TESTFILE.TXT"), ForWriting, True)
f.Write "This is only a test..."
f.Close
%>
this saves a file in (on my computer)
D:\InetPub\wwwroot\Testfile.txt