Selecting files during the capture phase – Lenovo ThinkPad Edge 15 User Manual

Page 69

Advertising
background image

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>
</Inclusions>
<Exclusions>
<ExcDescription>
<Description>d:\No_Longer_Used\</Description>
</ExcDescription>
</Exclusions>

Example 2

The following code example selects the contents of the drive, excluding all files located in the root of the d
drive and all files with a .tmp extension.

<Inclusions>
<IncDescription>
<Description<d:\*.*/s<\Description>
</IncDescription>
</Inclusions>
<Exclusions>
<ExcDescription>
<Description>d:\*.*</Description>
</ExcDescription>
<ExcDescription>
<Description>*:\*.tmp/s</Description>
</ExcDescription>
</Exclusions>

Example 3

The following code example selects the entire contents of the c drive, excluding all files located in the
directory: %windir%. The %windir% directory specifies the Windows directory.

<Inclusions>
<IncDescription>C:\*.*/s</Description>
</Inclusion>
<Exclusions>
<ExcDescription>
<Description>/Description>
</ExcDescription>
</Exclusions>

Chapter 4

.

Rejuvenation and migration

61

Advertising