This procedure copies all files from a source directory to a
destination directory. The recursive option includes subdirectories
in the copy, and the replace option overwrites existing files. It
is used by Microsoft Provisioning Framework (MPF).
The following table describes the input XML elements and
attributes. Unless otherwise indicated, the data type is
string.
Input Argument
Required
Description
<dirName>
Yes
Source directory for the copy operation. Specify the source
path using the sourcePath node.
<sourcePath>
Yes
Path of the directory to copy from.
<destPath>
Yes
Path of the target directory for the copy operation.
<newName>
No
Target directory for the copy operation. Specify the target
path using the destPath node.
<controlInfo replace=".." recursive="..">
No
Empty element with two optional attributes that further refine
the copy operation.
recursive: Enumeration ("true" or "false") that
specifies whether to include subdirectories in the copy. The
default value is "true".
replace: Enumeration ("true" or "false") that specifies
whether the copy overwrites existing files in the destination
directory. The default value is "false".
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.