Previous Topic

Next Topic

Book Contents

Book Index

Adding commands to the jobs

Each job has a series of commands associated with it. The commands associated with a job can be displayed by using the type command:

C:\> schedule type/commands \demo\a\update_b

\demo\a\update_b

REM these are the commands for update_b

C:\Program Files\balance_account.exe
C:\Reports\run_report.bat
C:\updates\update_program.exe

The commands are entered in the job property page as in the following example:

The success or failure of a job is determined by checking the terminating status code of the job. This status code is obtained in different ways depending on how the job terminates.

To add commands to Job1 and Job2:

  1. Right click on Job1 and select Properties... from the pop up menu.
  2. Enter "dir c:\windows"
  3. Click OK
  4. Repeat Steps 1 - 3 on Job2 but instead of entering the dir command, enter "ver"

See Also

Step 3: Adding commands(script) to the jobs