Syntax
| MoveRecord [Source][, Destination][, UserName][, Password][, Options][, Async]
| |||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Description
| Moves a file, or a directory and its contents, to a specified location.
The MoveRecord method is used to move a file or a directory and its contents from a source location to a destination location. In effect, the file or directory is deleted from its current location. If you want the file or directory to remain at the source location, you can use the CopyRecord method to relocate a copy to another location.
The default is not to overwrite any file or directory at the destination location and to update hypertext links in the files being moved, unless you specify otherwise in each case. Note that the ParentURL property is not automatically updated. You will need to close the Record and re-open it with the new URL. Likewise, you should close and re-open the Recordset object from which the Record was obtained to update the location.
This method will return a string value that is usually the value of the Destination parameter, but the exact value that is returned is provider-dependent.
There are six optional parameters.
MoveRecordOptionsEnum Constants
| |||||||||||||||||||||||||||||
See Also
| Recordset.Move, Recordset.MoveFirst, Recordset.MoveLast, Recordset.MoveNext, Recordset.MovePrevious.
| |||||||||||||||||||||||||||||
Example
| objRecord.MoveRecord strSourceURL, strDestinationURL, , , adMoveOverWrite |