I have some code which sends out emails. It runs fine if I put it in an ASP page and then browse to that page. But, when I put the code in a vbs file and try running it as a scheduled task, it generates this error:
Microsoft VBScript runtime error: Object required: 'Server'
The line generating the error is:
which I use later to read a text file from the server.
Why won't this work?
Microsoft VBScript runtime error: Object required: 'Server'
The line generating the error is:
Code:
set fso = Server.CreateObject("Scripting.FileSystemObject")
Why won't this work?