Announcement

Collapse
No announcement yet.

CreateObject doesn't work

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    CreateObject doesn't work

    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!

    #2
    Or, could be a security problem.

    I'm using the ajg_pingit.txt script, which uses the hs.ping function.

    Check the Event Log files if you are running NT.

    Steve

    Comment

    Working...
    X