COPY DOCUMENT

4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next

version 6.0


COPY DOCUMENT (sourceName; destinationName{; *})

ParameterTypeDescription
sourceNameStringName of document to be copied
destinationNameStringName of copied document
*Override existing document if any

Description

The COPY DOCUMENT command copies the document specified by sourceName to the location specified by destinationName.

Both sourceName and destinationName can be a name referring to a document located in the database folder or a pathname referring to a document in relation to the root level of a volume.

An error will occur if there is already a document named destinationName unless you specify the optional * parameter instructing COPY DOCUMENT to delete and override the destination document.

Examples

1. The following example duplicates a document in its own folder:

      COPY DOCUMENT("C:\\FOLDER\\DocName";"C:\\FOLDER\\DocName2")

2. The following example copies a document to the database folder (provided C:\\FOLDER is not the database folder):

      COPY DOCUMENT("C:\\FOLDER\\DocName";"DocName")

3. The following example copies a document from one volume to another one:

      COPY DOCUMENT("C:\\FOLDER\\DocName";"F:\\Archives\\DocName.OLD")

4. The following example duplicates a document in its own folder overriding an already existing copy:

      COPY DOCUMENT("C:\\FOLDER\\DocName";"C:\\FOLDER\\DocName2";*)

See Also

MOVE DOCUMENT.


4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next