Click to See Complete Forum and Search --> : Newbie - Detecting location of %CSIDL_PERSONAL%


haystacz
12-18-2007, 07:15 PM
Hey,

Need some help, pretty much new to XML and a migration has been dumped into my lap...

What I would like to do is have a 'If' statement which would check the location of my docs (%CSIDL_PERSONAL%) and if the path matched C:\data then it wont copy.

Any help would be great... cheers.

<!-- This component migrates My Documents files -->
<component type="Documents" context="User">
<displayName _locID="miguser.mydocs">My Documents</displayName>
<paths>
<path type="File">%CSIDL_PERSONAL%</path>
</paths>
<role role="Data">
<rules>
<include filter='MigXmlHelper.IgnoreIrrelevantLinks()'>
<objectSet>
<pattern type="File">%CSIDL_PERSONAL%\* </pattern>
</objectSet>
</include>
<exclude>
<objectSet>
</objectSet>
</exclude>
</rules>
</role>
</component>