My script that pings my network computers using Wscript.Shell's run method has recently (ok, it's been a while, but I've been busy!) started generating the following error in the log:
"-2147024769: in line 31" when running the following statement:
(30) Cmd = "%comspec% /c ping " & dev.location & " -a -n 1 -w 100 >> " & strFileLocation & unitID & ".txt"
(31) CreateObject("Wscript.Shell").Run Cmd, 0, True
This used to work, but even when trying the same command from VB it fails, and adds the text description that the "specified procedure could not be found".
Help!
"-2147024769: in line 31" when running the following statement:
(30) Cmd = "%comspec% /c ping " & dev.location & " -a -n 1 -w 100 >> " & strFileLocation & unitID & ".txt"
(31) CreateObject("Wscript.Shell").Run Cmd, 0, True
This used to work, but even when trying the same command from VB it fails, and adds the text description that the "specified procedure could not be found".
Help!
Comment