DRS

MAY Computer

Help

COPYCOMPONENTS

Applies to  

DRS (Module: wmDRS.dll)

Group  

DRD

See also  

MOVECOMPONENTS, DELETECOMPONENTFILES, SETDRDFILE

Copies DRD and all document files linked to the current DRD to a new location. Sets the specified variable to 1 if the the operation was successful, otherwise 0.

If SaveRelativePath is 1 then paths are stripped from component filenames which will cause component files to be assumed always in the same folder where the DRD file resides.

If your DRD was not opened from an existing file you should use the SETDRDFILE command before to set the used filename for the destination DRD file.

 

Syntax

COPYCOMPONENTS <VariableName>, <NewPath>[, <SaveRelativePath>][, <PreventFileOverwrite>][, <DRDName>]

Part

Description

<VariableName> Script variable to store operation result in.
<NewPath> Destination path for DRD and component files.
<SaveRelativePath> 0|1; flag if filenames in DRD should be changed to relative path and filenames (path stripped). Default is 0.
<PreventFileOverwrite> Flag if already existing files should be overwritten. Default is 0 (overwrite). If 1 then does not overwrite files and create an error instead.
<DRDName> DRD key.