Visual Basic Script not working with Windows 2003 Script??!!

By dmciver ·
I am trying to run a Visual Basic Script. The parent script hosting script calls my that executes script after script. Well after doing updates, I am getting file handle error and not enough storage space error. My error in the file handle is calling line 182. The following is the script

If oX.FileExists("MAIL.vbs") Then
' hack hack - Win2003 returns Handle is invalid, make
' a new shell object and use the run on that
WScript.sleep 3000

Set oWShellHack = CreateObject("")
oWShellHack.Run "s:\d\p_in\MAIL.vbs",2,1
Set oLogFile = oFSO.OpenTextFile(LOG_FILE,
oLogFile.WriteLine("Mail.vbs was processed.")
End If
This works on all Window 2000 machines. Just not on my 2003 machine. Anyone help?

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Answers

Share your knowledge

Related Discussions

Related Forums