
Table 23. (continued)
Command Parameter Description Example
<Exclusions> <ExcDescription>
<Description>
<DateCompare>
<Operand>
<Date>
<SizeCompare>
<Operand>
<Size> where
v <Source> is a fully qualified file
name or folder name. You can
use the wild card character for
both file name and folder name.
v <DateCompare> is an optional
command that you can use to
select files based on the date
when they were created.
– <Operand> is either NEWER
or OLDER.
– <Date> is the baseline date in
mm/dd/yyyy format.
v
<SizeCompare> Optional
parameter to select files based on
their size.
– <Operand> is either LARGER
or SMALLER.
– <Size> is the file size in MB.
To unselect all matching files in a
specified directory
For example:
Example 1
<Exclusions>
<ExcDescription>
<Description>C:\YourWorkFolder
</Description>
</ExDescription>
</Exclusions>
Example 2
<Exclusions>
<ExcDescription>
<Description>C:\YourWorkFolder
</Description>
<DateCompare>
<Operand>OLDER</Operand>
<Date>07/31/2005</Date>
</DateCompare>
</ExcDescription>
</Exclusions>
Example 3
<Exclusions>
<ExcDescription>
<Description>C:\YourWorkFolder
</Description>
<SizeCompare>
<Operand>LARGER</Operand>
<Size>200</Size></SizeCompare>
</ExcDescription>
</Exclusions>
Examples of file-migration commands
This section contains examples of file-migration commands. These examples
demonstrate how to combine file-inclusion and file-exclusion commands to refine
your file selection. Only the file-handling sections of the command file are shown.
Selecting files during the capture phase
This section contains three examples of code used to select files during the capture
phase.
Example 1
The following code example selects all files with a .doc extension (Microsoft Word
documents) and relocates them in the “d:\My Documents” directory. It then
excludes all files that are in the d:\No_Longer_Used directory.
<Inclusions>
<IncDescription>
<Description>*:\*.doc/s</Description>
<Dest>d:\My Documents</Dest>
<Operation>r</Operation>
</IncDescription>
Chapter 4. System Migration Assistant customization 57
Comentarios a estos manuales