I've been doing a bit of vbscript coding for use in CA's and I've noticed quite a few discrepencies between when I run my VBscript from the desktop and when I run it from within a CA... most of these have been eliminated by the removal of references to the Wscript object when making calls to its methods in the CA, however not all. I do not understand why this should be... Anyone care to enlighten me?
The current problem I'm facing is when using the Sleep method; if I specify:
Wscript.Sleep 100
which works fin on the desktop, then in the CA I get a vbscript object required error.
And if I specify in the CA simply:
Sleep 100
I get a parameter mismatch error
Please help
