When I run a job from outside the debugger, it displays box containing the information "Running for: (time)". It would be useful to have an action that accesses the runtime of the current job and stores it in a variable, so I can keep a log of how long a job took. (Maybe this already exists and I just don't know how to do it.)
Also, it would be useful if the "Run Job" action had a "with command line arguments" option so I wouldn't have to either use external variables or call WinAutomationController using the "Run DOS Command" action.


Hello Andrew,
Regarding the "Get Job Runtime":
You can do this by using the following 3 simple actions:
- The first action of your job should be a "Get Current Date and Time" action. Let's assume that you save this in a variable %StartDateAndTime%
- At the point where you want to retrieve the job execution time, you will have to place another "Get Current Date and Time" action and store it in a variable named %CurrentDateAndTime% for example
- Then, use the "Subtract Dates" action to get the difference between the %StartDateAndTime% and %CurrentDateAndTime% variables in days, hours, minutes or seconds
Regarding the command line arguments in the "Run Job" action:
The recommended way of passing values between jobs is through the external variables. This is the main usage of the external variables and the reason that they were built for. I cannot see any cases that the usage of external variables will not be sufficient and you would definitely have to use command line arguments. As a matter of fact, the external variables give you the option of passing variables with their types while the command line arguments would only allow you to send text to the child job.