Copyfiles – Motorola ENTERPRISE DIGITAL ASSISTANT MC70 User Manual

Page 74

Advertising
background image

4 - 8

MC70 Integrator Guide

The following example uses XML provisioning to perform the same task:

SampleReg.xml

<wap-provisioningdoc>

<characteristic type="Registry">

<characteristic type="HKLM\Hardware\DeviceMap\Backlight">

<parm name="BacklightIntensity" value="54" datatype="integer" />

</characteristic>

</characteristic>

</wap-provisioningdoc>

CopyFiles

CopyFiles copies files from one folder to another on a clean boot. During a clean boot CopyFiles looks for files
with a .CPY extension in the root of the Application FFS partition. These files are text files containing the
source and destination for the desired files to copy, separated by “>”.

The following example uses CopyFiles to copy a file from the \Application folder to the \Windows folder:

SampleCpy.cpy

\Application\example.txt > \Windows\example.txt

The following example uses XML provisioning to perform the same task:

SampleCpy.xml

<wap-provisioningdoc>

<characteristic type="FileOperation">

<characteristic type="\Windows" translation="filesystem">

<characteristic type="MakeDir"/>

<characteristic type="example.txt" translation="fileystem">

<characteristic type="Copy">

<parm name="Source" value="\Application\example.txt" translation="filesystem"/>

</characteristic>

</characteristic>

</characteristic>

</characteristic>

</wap-provisioningdoc>

Advertising