To set up PROMODAG Reports to automatically import message tracking files and update the directory, perform the following tasks:
- Create a batch file and choose what should be imported.
- Schedule the batch file using Windows standard scheduler.
A. Create the batch file
To create a batch file, select Tools > Task Automation to access the automation screen. Click the <New batch> button (above, right) and enter a file name and description. By default, the file will be saved under the Batches subdirectory of PROMODAG Reports.

Exploring the available commands
In the Commands and report options files, expand Commands to display available commands that can be automated.

The following commands perform the described functions:
- Database specification: Choose a specific database to be used when the batch runs.
- Batch Trace File Location: Choose where trace file will be generated.
- Directory connection: Choose a specific directory connection to be used by the batch.
- Exchange connection: Choose a specific Exchange connection to be used by the batch.
- Clear Imports: Delete old messages from the database.
- Import Directory: Import or update the Exchange directory.
- Import Message Tracking Files: Import message tracking files.
- Import Internet Information Server: Import IIs log files.
- Import Storage Size: Import information store size.
- IMC archives import: Import Internet mail connector archives (when applicable).
- Compact Database: Compact or shrink the database.
Adding the Import Message Tracking Files command
In the left part of the screen, select the Actions > Import Message Tracking Files command and then click the -> button. Default settings specify that messages tracking files for the chosen server(s) will be imported from the last import up to yesterday. Click on <OK>.

Adding the Directory import command
In the left part of the screen, select the Actions > Import Directory command then click the -> button. Default settings specify that the directory will be updated with new and modified recipients. Click on OK.

You can now save your settings by clicking on <Save As> (above, right).
B. Schedule the batch file
You simply need to click on the <Schedule> button (above, right), check the content of the window, and click on the second <Schedule> button shown below. You will then schedule the task with the standard Windows Scheduler.

NB: By default, actions will be carried out on the last database opened, unless you specify which database must be used (action: Database specification).