I have code that generates a totalrecall profile for WorkaboutPro G1 and G2 machines by simply calling totalrecall as follows...
totalrecall -ba Default1
This results in a backup of the machine's files and registry entries which did not include the "\PCMCIA-CF Card" directory.
If I run the same command on a WorkaboutPro Gen 3 machine, the "\PCMCIA-CF Card" directory is also included... very undesirable for my application!
I discovered that the WAPro Gen3 machines have an updated version of TotalRecall.exe that uses xml files. (WinCE 5.0 OS Code L100t Boot J010q)
I have tried running totalrecall.exe with one argument which is:-
I have a second xml file TrExclusions.xml located in the root directory.
The content of the backupcommand.xml file is as below :-
<root> <command> backup<profilename>\Flash Disk\Default1.pfl</profilename><autorestore>autorestoreenabled</autorestore> </command></root>
and the content of the TrExclusions file is as below :-
<root> <excludedfiles> <path>\PCMCIA-CF Card\*.*</path> </excludedfiles> <excludeddirectories> <path>\PCMCIA-CF Card</path> </excludeddirectories> <excludedattributes> </excludedattributes></root>
What I am finding is that the TotalRecall backup profile is being created ok but it is including the files in the "\PCMCIA-CF Card" directory too. It's as if the TrExclusions.xml file is being ignored (although it is being listed as being backed up).
Any Ideas please on what I'm doing wrong please?
Any help would be appreciated.
NB: The TotalRecall GUI version and Engine Versions are both 3.12.6275.0 when you run up TotalRecall from the Control Panel.
Try putting the TrExclusions.xml file in the windows folder.
At some point someone thought that having it in the root folder was to "exposed"... sigh.
I should also warn people that it was deemed unnecessary in TR 5.0
Also: I'm pretty sure the file has to be in Unicode (no BOM) ( I need to double check that) If so, Notepad is probably the safest editor to use.
My mistake. ASCII is the way to go!
Putting the TrExclusions.xml in the \windows directory did the trick nicely.
Thanks for the help which is appreciated.
Further to the above, with WinCe v5.0 OS Code L100t running total recall v3.12.6275.0 and the TRExclusions.xml file in the \Windows directory the PCMCIA-CF Card was not being included in the Total Recall file... this is good.
However with a later OS version (WinCE v5.0 OS Code E051s build 1400) the PCMCIA-CF Card is again being backed up despite the same TRExclusions file being present??
Any ideas would be appreciated. Thanks Ray