Variables for Batch

Get help for specific problems
Posts: 24
Joined: 25 Nov 2009

bkeadle

It would appear that variables in batch work for <FolderPairs>, but not for
<BatchConfig>? I have this snippet:
<FolderPairs>
<Pair>
<Left>\\openfiler\music\Collection\iTunes</Left>
<Right>%SOURCE%\iTunes</Right>
</Pair>
</FolderPairs>
<ExecuteWhenFinished/>
</MainConfig>
<BatchConfig>
<ShowProgress>true</ShowProgress>
<LogfileDirectory>%SOURCE%\FreeFileSync\logs</LogfileDirectory>
</BatchConfig>

And I'm not getting a log file in %SOURCE%\FreeFileSync\Logs as expected. Any
reason why variables can't be used throughout the .XML?

Also, I note the <ExecuteWhenFinished>. What is this? This looks like I may be
able to inject some custom scripting to do additional items?! That would be
great! Any details?
User avatar
Site Admin
Posts: 7211
Joined: 9 Dec 2007

Zenju

> And I'm not getting a log file in %SOURCE%\FreeFileSync\Logs as expected


You should see an error message in this case. Generally, environment variables
are supported in all directory input fields.


> Also, I note the <ExecuteWhenFinished>.


This is the XML element for the "on completion" command in sync settings.