xml spy
Previous  Top  Next

Scheduling StyleVisionBatch Tasks


A StyleVisionBatch command or set of commands (described in the previous sections) can be set up to run to a pre-determined schedule. This scheduling is done with the Scheduled Tasks tool of Windows. The Scheduled Task tool opens the StyleVisionBatch utility and executes the command specified in the task.

 

To create a scheduled task, do the following:

 

1.If you plan to run a set of StyleVisionBatch commands as a scheduled taskas opposed to a single commandthese commands should be created in a batch file (see Command Line Interface: StyleVisionBatch). If a single StyleVisionBatch command is to be scheduled, go to Step 2.
2.Open the Scheduled Task Wizard of Windows (Start | Control Panel | Scheduled Tasks | Add Scheduled Task).
3.Click Next to start setting up the task.
4.In the window to select the program to run, you select either StyleVisionBatch.exe (for a single StyleVisionBatch command) or a batch file (containing multiple StyleVisionBatch commands). Browse for the required file and select it. The next screen (screenshot below) appears.

 

SchedTaskWizName

 

5.Assign a name for the task, and set a frequency for it. Then click Next.
6.Select the starting day and time for the schedule. Then click Next.
7.Enter the appropriate user name and password. Then click Next.
8.In the finishing screen (screenshot below), if you are scheduling a single StyleVisionBatch command and have therefore selected SVBATCH%>.exe as the program to run, check the Open Advanced Properties... check box. (It is in the Advanced Properties dialog that the StyleVisionBatch command is specified.) Then click Finish.

 

SchedTaskWizFinish

 

If you have specified a batch file as the program to run for the task, there is no need to set any advanced properties and you can leave the Open Advanced Properties check box unchecked. In this case, the scheduling of the task is now complete.

9.This step is required only if you are scheduling a single StyleVisionBatch command as your task. On clicking Finish with the Open Advanced Properties... check box checked, a dialog showing the properties of the task pops up (screenshot below).

 

SchedTaskWizCommand

 

In the Start In text field (screenshot above) enter the required StyleVisionBatch command, for example: "C:\Program Files\Altova\StyleVision2007" -v Examples\NanonullOrg.sps -OutXSLT=Examples\Nano1.xslt. Use quotes if there are spaces in your file or folder names, and, in your paths, use backslashes. If desired, enter a comment describing the task. Click OK to finish.

 

 

Deleting a scheduled task

To delete a scheduled task, open the Scheduled Tasks window (Start | Control Panel | Scheduled Tasks), select the task and either click the Delete icon or press the Delete key.

 

 


See also:

 

 


 

 

 


Previous  Top  Next

© 2008 Altova