> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Using a script to specify export settings

> Specify Laserfiche export settings with a C# script so all FlexiCapture stations share dynamic file naming, locations, and field mappings by document type.

One advantage of using a script is that all the export settings will be automatically used by all the FC stations from which data are exported to Laserfiche. When [using an XML file](/flexi-capture/connectors/laserfiche/lf-export-xml), you can only specify static settings, whereas scripts allow you to specify different file naming rules, file locations, and field mappings depending on the data contained in the exported document. An export script also allows you to get a list of Laserfiche repositories, a list of templates and their fields, and the folder structure.

However, to modify the export settings, you will have to make changes to the script and, consequently, publish a new version of the Document Definition.

Please use the script named **Laserfiche — ExportScript — Configure by script.cs**, which you can find in the **Samples** folder in the folder where you installed the LASERFICHE (the default path is C:\Program Files (x86)\ABBYY FlexiCapture Connector for Laserfiche\Samples).
