I forgot to say that WScript is not an object, it is a program that runs the MS script control. WScript is "Microsoft (r) Windows Based Script Host". Methods like sleep and quit are extensions of that particular program. Of cource you can run external VBScripts using that progtam and program type jobs. In program type and JALScript type jobs you can capture the process exit code and put some logic into main script or notification action to handle the returned code. The only issue with "outside" job definitions is that you have to deploy and replicate them yourself if you run remote jobs or do some job replication. 24x7 takes complete care of "inside" job definitions. : Yes, I have been using child objects of the WScript root object without : problem. I guess what you are telling me is that methods and properties of : the WScript root object is inaccessible from within a 24x7 vbscript job. : Thank you for the alternative "sleep" method using : JALScript.Execute. : The other issue I had was returning an exit code to 24x7 from my vbscript : job. I was trying to use wscript.quit to effect this. Is there another way : for a vbscript job to return a "failure" exit code so that 24x7 : will flag the job as "failed"? : Thanks for the good help!
|