Question

Locked

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 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,
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 conversation is currently closed to new comments.

2 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Share your knowledge
Back to Software Forum
2 total posts (Page 1 of 1)  

Related Discussions

Related Forums