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