MOVE DOCUMENT

4D - Documentation   Français   English   German   Spanish   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next

version 6.0


MOVE DOCUMENT (srcPathname; dstPathname)

ParameterTypeDescription
srcPathnameStringFull pathname to existing document
dstPathnameStringDestination pathname

Description

The MOVE DOCUMENT command moves or renames a document.

You specify the full pathname to the document in srcPathname and the new name and/or new location for the document in dstPathname.

Warning: Using MOVE DOCUMENT, you can move a document from and to any directory on the same volume. If you want to move a document between two distinct volumes, use COPY DOCUMENT to "move" the document then delete the original copy of the document using DELETE DOCUMENT.

Examples

1. The following example renames the document DocName:

      MOVE DOCUMENT("C:\\FOLDER\\DocName";"C:\\FOLDER\\NewDocName")

2. The following example moves and renames the document DocName:

      MOVE DOCUMENT("C:\\FOLDER1\\DocName";"C:\\FOLDER2\\NewDocName")

3. The following example moves the document DocName:

      MOVE DOCUMENT("C:\\FOLDER1\\DocName";"C:\\FOLDER2\\DocName")

Note: In the last two examples, the destination folder "C:\\FOLDER2" must exist. The MOVE DOCUMENT command only moves a document; it does not create folders.

See Also

COPY DOCUMENT.


4D - Documentation   Français   English   German   Spanish   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next