Share via


WebFile.Move Method

SharePoint Designer Developer Reference

Moves a file in a Web site from its current location to a designated URL.

Syntax

expression.Move(DestinationUrl, UpdateLinks, ForceOverwrite)

expression   A variable that represents a WebFile object.

Parameters

Name Required/Optional Data Type Description
DestinationUrl Required String The target URL, such as "C:\My Documents\My Web Sites\Adventure Works".
UpdateLinks Required Boolean True to update links during the move process.
ForceOverwrite Required Boolean True to overwrite duplicate files.

See Also