Visual Basic Script not working with Windows 2003 Script??!! - TechRepublic
Question
July 15, 2008 at 12:08 PM
dmciver

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

by dmciver . Updated 18 years ago

I am trying to run a Visual Basic Script. The parent script hosting script calls my wscript.shell 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(“Wscript.shell”)
oWShellHack.Run “s:\d\p_in\MAIL.vbs”,2,1
Set oLogFile = oFSO.OpenTextFile(LOG_FILE, 8)
oLogFile.WriteLine(“Mail.vbs was processed.”)
oLogFile.Close
End If
————————-
This works on all Window 2000 machines. Just not on my 2003 machine. Anyone help?

This discussion is locked

All Comments