I probably did poor job on explaining what I need. So, we run 24x7 job from the batch file as a command: SET something=... ... "C:\Program Files\24x7 Automation 3\24X7.EXE " /JOB 238 ... and we need to check in this batch file if JOB succeed or failed. So we need to check exitcode from 24x7 from OUTSIDE(!) of 24x7 . Any suggestions? Thank you. : Use Run, RunAndWait, RunAsUser, RunWithInput or similar command to execute : external processes and operation system commands. : For example, create a batch file like the following : ; set environment variable : SET %1=%2 : ; print current value : SET %1% : ; pause : PAUSE : If you call this file as test.bat then from the script you can run it as : Dim process_id, number : RunAndWait "test.bat myvar exitcode", "", 0, process_id : Please note that the environment value is only valid for the duration of the : job and the process that triggered that job.
|