Setting Up A Scheduled Task in Windows 7

Complete

Setting Up A Scheduled Task in Windows 7

This tutorial is essentially an appendix to the tutorial "Automatic Document Importing into OpenVPMS" as the method for setting up the Task Scheduler is different in Windows 7 to that of Windows XP.

Click Start | Control Panel (1) | System and Security (2) | Schedule Tasks (3):

Click Create Basic Task (4):

Enter a Name(5) and Description (6) for the task, and click Next (7):

Click Daily radio button (8) and click Next (9):

Select Start date (usually left as Today) and a time (10) and click Next (11):

Click the Start A Program radio button (12) and click Next (13):

Copy this command line complete with quotes and paste into the Program/Script field (14):

C:\OpenVPMS\current\bin\docload.bat --byid --source c:\importfolder\in --dest c:\openvpms\importfolder\archive --verbose -o --regexp "^[a-zA-Z]{0,2}(\d+).*"

Copy and paste this line into the Start In field (15).

C:\OpenVPMS\current\bin\

Note: once you've pasted in these two parameters, you will need to edit these lines as per the table below:

C:\OpenVPMS\current  ---> The location of your current OpenVPMS installation
c:\importfolder\in  ---> The location of the folder containing incoming documents
c:\importfolder\archive  ---> The location of the folder containing documents that have been successfully added to OpenVPMS
C:\OpenVPMS\current\bin  ---> The location of the bin folder in your current OpenVPMS installation

Once this has been done, click Next (16 in image above).

This message will appear - click Yes (17):

Click to check Open the Properties... box (18) and click Finish (19):

To fine-tune frequency of operation, click on Triggers tab (20) and then Edit (21):

Select how often (22) you want to run the scheduler and for how long (23) and click OK (24) :

You're done.
 


If you need to edit this task, click on Start | Control Panel (1) | System and Security (2) | Schedule Tasks (3) | Active Tasks (25), click on OpenVPMS DocLoader (26)....

.... and click on Properties (27):

You'll then be at the window as per image above at (20) and (21).



Page created 30-Aug-2013 by Yuri Sos