It appears that the scheduler runs the task, but I don't get the result of the script. Here's what the schedule log shows:
"At1.job" (Wscript)
Started 1/28/03 4:28:00 PM
The script I'm trying to run checks the disk space on the C:\ drive of a NT Server. If it goes below a certain point, it sends me an e-mail. For testing, I'm just having it send the e-mail. The script works if you launch it from a command prompt.
Here's the script code:
dim oSession, oMessage, oAttachment, oRecipient, strSubject, strText, strFname, strLoc
dim sTo,inp01,txt01,inp02,name1,name2
sTo = "SMTP:user@somecompany.com"
strSubject = "Test of AT Scheduler"
strText = "The e-mail automation process was successful!" & vbCr & vbCr & _
"This messages was generated by a vbScript at: " & Now() & vbCr & vbCr & "Sys Admin"
set oSession=CreateObject("MAPI.Session"

oSession.Logon "User"
set oMessage=oSession.Outbox.Messages.Add(strSubject,strText)
set oRecipient=oMessage.Recipients.Add(,sTo)
oRecipient.Resolve
oMessage.Send
oSession.Logoff
set oSession=nothing
WScript.quit