File System Provider::MoveFile
Moves a file from a source to destination directory. Used by Microsoft® Provisioning Framework (MPF).
XML Input Schema
The following code fragment shows the format for sending data to this procedure. For more information on individual elements and attributes, see the Elements and Attributes table.
<executeData>1..1 <fileName>1..1</filename> <sourcePath path="..">1..1</sourcePath> <destPath path="..">1..1</destPath> <controlInfo replace="..">0..1</controlInfo> </executeData>XML Output Schema
MoveFile does not return data.
Elements and Attributes
The following table describes the XML elements and attributes. Unless otherwise indicated, the data type is string.
Element Description, relationships, and attributes controlInfo Description:
Contains the replace attribute.Parent:
executeDataAttribute:
replace Required. Enumeration ("true" or "false") that specifies whether the copy overwrites an existing file of the same name in the destination directory. The default value is "false". destPath Description:
Path of the target directory for the move operation.Parent:
executeDataAttribute:
path Required. Path of the target directory. executeData Description:
Encapsulates the procedure's input data.Children:
controlInfo (minOccurs="0" maxOccurs="1")
destPath (minOccurs="1" maxOccurs="1")
fileName (minOccurs="1" maxOccurs="1")
properties (minOccurs="0" maxOccurs="1")
security (minOccurs="0" maxOccurs="1")
sourcePath (minOccurs="1" maxOccurs="1")
summary (minOccurs="0" maxOccurs="1")fileName Description:
Name of the file to move.Parent:
executeDatasourcePath Description:
Path of the directory to move from.Parent:
executeDataAttribute:
path Required. Path of the source directory. Remarks
Rollback returns the file to its original location.
See Also
CopyFile, DeleteFile, File System Provider, GetFileAttributes, RenameFile
Top of Page
© 1999-2002 Microsoft Corporation. All rights reserved.