
** ? concerning CreateObject("Scripting.FileSystemObject")
Hi doe anyone know how to call the
CreateObject("Scripting.FileSystemObject")
other then in the primary scripting <% %> of vb. In the following
example just below I'm trying to read a script file every 5 second ,
that works without the filesystemobject......Anyone know how to
achieve this..
<SCRIPT LANGUAGE="VBScript">
Const ForReading = 1
public x
Public Sub Gpwsm
Const ForReading = 1
Set fs = Server.CreateObject("Scripting.FileSystemObject")
Set a = fs.OpenTextFile("c:\webshare\wwwroot\pwsm.txt",
ForReading, FALSE)
RawData = a.Read(15)
a.Close
x = x + 1
document.all.MyData.innerText = x & " -- " & time
MyID = setTimeout ("Gpwsm", 5000)
End Sub
</script>
<body onLoad="Gpwsm()" background = "white">
<P ID="MyData"></P>
</body>
Thanks
Bandit