Schedule RMS to run automatically
Previous  Top  Next


You can schedule certain RMS activities to run while you are doing other things or out of the office. First, establish a schedule RMS activities in the RMS Scheduler (see Help topic Scheduler | Add, Update, Delete a scheduled activity). Then, follow these steps:

For Windows XP

1.Click the Start | Control Panel | Scheduled Tasks | Add Scheduled Task menu.  
2.Follow the wizard instructions - the program that you want Windows to run is RMSAgent.exe. You will need to Browse for it in the c:\Program Files\Railcar Tracking Co\RMS folder (or the folder where you installed RMS).  
3.Choose to Perform this task Daily, click Next.  
4.Set the Start time to 6am; Perform this task Every Day; Start date 4/19/2007, click Next.  
5.Enter the Windows user name and password for the user account to run this task; this will enable the task to run even if all users are logged off,    click Next.  
6.Check the box Open advanced properties... and click Finish.  
7.When the Advanced properties open, click the Schedule tab and then click the Advanced button.  
8.Check the box labeled Repeat task and select Every 2 minutes and select Until Duration: 24 hours; click OK.  
9.Click on the Settings tab and set the Stop task if it runs for option to 3 hours; click OK to save the settings.  
10.The last thing you need to do is to make sure that you open the RMS application while logged onto the computer as the Windows user account used in step 5 and then close the RMS application. This ensures that the login information is stored (the password is encrypted) in the user account settings; this stored information will be used by the RMSAgent.exe program to login to the RMS database automatically.  
      
For Windows Vista

1.Click Start and in the Search text box type "Task Scheduler"; when the shortcut displays at the top of the Start menu under Programs, click on it.  
2.In the Actions task window, click Create Task.  
3.On the General tab:  
   Name: RMSAgent  
   Description: Runs the RMSAgent program  
   Select the option to Run whether user is logged on or not  
   Leave Do not store password check box unchecked  
   Check the Run with highest privileges  
   Leave the Hidden check box unchecked  
   Configure for Windows Vista or Windows Server 2008  
4.On the Triggers tab:  
   Click the New button  
   Begin the task: On a schedule  
   Settings: Daily; Start: current date and time; leave synchronize across time zones blank; Recur every: 1 days  
   Advanced settings  
      Delay task for up to ... (unchecked)  
      Repeat task every: 1 minute for a duration of: Indefinitely (checked)  
      Stop task if it runs longer than: 4 hours (checked)  
      Expire: (unchecked)  
      Enabled (checked)  
5.On the Actions tab:  
   Click the New button  
   Action: Start a program  
   Settings: Program/script - click the Browse button and select c:\Program Files\Railcar Tracking Co\RMS\RMSAgent.exe and click Open  
   Leave Add arguments and Start in text boxes blank  
6.On the Conditions tab:  
   Start the task only if the computer is idle for: (unchecked)  
   Start the task only if the computer is on AC power (checked)  
   Stop if the computer switches to battery power (checked)  
   Wake the computer to run this task (checked)  
   Start only if the following network connection is available (unchecked)  
7.On the Settings tab:  
   Allow task to be run on demand (checked)  
   Run task as soon as possible after a scheduled start is missed (unchecked)  
   If the task fails, restart every: (unchecked)  
   Stop the task if it runs longer than: 4 hours (checked)  
   If the running task does not end when requested, force it to stop (checked)  
   If the task is not scheduled to run again, delete it after: (unchecked)  
   If the task is already running, then the following rule applies: Do not start a new instance  
   Click OK  
   You will be prompted to enter the password for the Windows account that will be used to run this task, enter it and click OK.  
 
 
NOTE: RMS has an integrated scheduler that wouldn't require the use of the Windows Scheduled Tasks however this is primarily provided for backward compatibility and is not recommended for use. The integrated scheduler is activated by clicking on the File | Start Scheduler menu. This is not recommended because it required the RMS application to remain open while scheduled activities run; this is not as secure as the process listed above, which enables you to log off of the computer that is running the scheduled activities. Scheduled activities may run on your computer or any other computer while you have the RMS application open doing other things. It is ideal to have the scheduled activities run on an application server in a data center for performance reasons, but that is not required.