CopyBatchType

When creating a new project, you can use batch types created in other projects. This will save time and prevent configuration errors. You can use the CopyBatchType command to copy batches from one project to another. The command will overwrite any batch types having the same names as the batch types that you want to copy. In addition to batch types, you may also want to copy general, workflow, image processing, recognition, verification, and export settings, as well as handlers and .NET reference properties. To address this need, a new parameter called /CopyDefault has been implemented in ABBYY FlexiCapture 12 Release 4 Update 3. This parameter copies batch settings from another project into your default batch.
Note: A batch type may reference a Document Definition. If there is no such Document Definition in the target project, a warning message will be displayed and the reference to the missing Document Definition will be removed.

Parameters

/Source Required

The source project from which batch types should be copied.

You can specify either the full path to a local project or the path to a project stored on a server.

/Target Required

The target project where you want to add or replace batch types.

You can specify either the full path to a local project or the path to a project stored on a server.

/Name Optional

Batch type name.

If a batch type with this name already exists in the target project, the batch type will be overwritten. If no batch type name is specified, all the batch types will be copied.

/TargetName Optional

New batch type name.

If it is not set, the original name will be used.

/DocumentDefinitions Optional A list of document definitions referenced by the new batch type.
/ClassifierId Optional The batch classifier ID referenced by the new batch type.
/SourceU Optional

User name.

If no user name is specified, Windows authentication will be used.

/SourceP Optional Password.
/SourceTenant Optional The tenant with the source project.
/SourceCert Optional Certificate thumbprint used for mutual SSL authentication on the server of the source project. This key is used to pass an encoded certificate hash for a server with Mutual SSL installed as a string.
/TargetU Optional

User name.

If no user name is specified, Windows authentication will be used.

/TargetP Optional Password.
/TargetTenant Optional The tenant with the target project.
/TargetCert Optional Certificate thumbprint used for mutual SSL authentication on the server of the target project. This key is used to pass an encoded certificate hash for a server with Mutual SSL installed as a string.
/AlwaysAdd Flag If this parameter is set, a new batch type is added regardless of whether the given batch type exists or not.
/CopyDefault Flag

Copies the default batch settings from the source project into the default batch in the target project. The /Name and /TargetName parameters should not be set.

If you want to copy the batch settings of a specific batch from the source project into the default batch in the target project, set the /Name parameter.

If you want to copy the default batch settings from the source project into a specific batch in the target project, set the /TargetName parameter.

Example of use:
CopyBatchType /Source="https://FCSRV/1/SingleEntryPoint" /Target=D:\Projects\SingleEntryPoint /SourceU=user /SourceP=password /Name="Batch type 1" /TargetName="Batch type 2"

CopyBatchType /Source="https://FCSRV/1/SingleEntryPoint" /Target=D:\Projects\SingleEntryPoint /SourceU=user /SourceP=password /CopyDefault – сopies the settings of the default batch in the source project into the default batch in the target project.

4/12/2024 6:16:01 PM

Please leave your feedback about this article

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.