Running command files when exporting

When producing an export, Aiolos can also run a .bat file. This will be in the “%appmaindir%\scripts” directory on the server. The name of the file depends on the export type and the relevant configuration:

Export type

File name

Init

Any file name – stated according to export definition.
The name of the batch file should be in table “LoadExport” column “FilesScript” . This should only be the name, no path! It is always in the “scripts” folder.

Clip

No .bat file called

Excel

ExcelExport.bat

Template

ExcelTemplateExport.bat

XML

XmlExport.bat

Aiolos includes the command parameters in the .bat file so you can see in the file what stage the export is at and which series it relates to. The first parameter always says which stage the export is at when called.
N.B. All parameters are enclosed in quotation marks. These may need to be filtered out in the .bat file.

Value of parameter 1

Meaning

PREDEF

Batch file is called once before an export of all series linked to a certain export definition. Only for Init exports.

PRE

Bacth file is called before every export of every individual series.

POST

Batch file is called after every export of every individual series.

POSTDEF

Batch file is called once after an export of all series linked to a certain definition. Only for Init exports.

Other .bat file parameters vary slightly depending on the export type and stage.