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.
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.

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

11/15/2022 10:12:44 AM

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.