4D v14.3

MOVE DOCUMENT

Home

 
4D v14.3
MOVE DOCUMENT

MOVE DOCUMENT 


 

MOVE DOCUMENT ( srcPathname ; dstPathname ) 
Parameter Type   Description
srcPathname  String in Full pathname to existing document
dstPathname  String in Destination pathname

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.

The following example renames the document DocName:

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

The following example moves and renames the document DocName:

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

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.

 
PROPERTIES 

Product: 4D
Theme: System Documents
Number: 540

The OK variable is changed by the commandThis command modifies the Error system variable

 
HISTORY 

Created: 4D v6

 
SEE ALSO 

COPY DOCUMENT

 
ARTICLE USAGE

4D Language Reference ( 4D v11 SQL Release 6)
4D Language Reference ( 4D v12.4)
4D Language Reference ( 4D v14 R3)
4D Language Reference ( 4D v14 R2)
4D Language Reference ( 4D v13.5)
4D Language Reference ( 4D v14.3)
4D Language Reference ( 4D v14 R4)