I'm trying to implement the Windows Script Host Run method; the reason for this is to have a means of knowing that the requested program has finished, using bWaitOnReturn, before progressing to the next action. I've defined an object thus:
Code:
var WshShell=WScript.CreateObject("WScript.Shell")
This is followed later by
Code:
WshShell.run(<program>,1,True)
.
Running this interpretively gives an "undefined identifier" error against the WScript.CreateObject. Doubtless this is plain ignorance on my part, but has anyone done anything similar?
Many thanks, Linnet