RealTimeSync, but this keeps failing when RealTimeSync tries to execute the
command line. The environment variable does resolve if you add it as a
directory to monitor, so we know that RealTimeSync can resolve it.
I have included our RealTimeSync .real file here, don't worry about the v5.0
in the name, we are using 5.6 as our version:
<?xml version="1.0" encoding="UTF-8"?>
<FreeFileSync XmlType="REAL">
<Directories>
<Item>%PCXPATH%\online</Item>
<Item>%csidl_MyDocuments%</Item>
<Item>%csidl_Desktop%</Item>
<Item>%csidl_Favorites%</Item>
<Item>%TEMP%</Item>
</Directories>
<Commandline>"[b];%CMDCACHE%[/b]\PCXTools_3.0.eng\FreeFileSyncv5.0\FreeFileSy
nc.exe" "%CMDCACHE%\PCXTools_3.0.eng\FreeFileSyncv5.0\SyncEverything
AllTheTime.ffs_batch"</Commandline>
<Delay>120</Delay>
</FreeFileSync>
We get a dialog from RealTimeSync with the exe and file command lines and the
error is Windows Error Code 2: The system cannot find the file specified.
If I take "%CMDCACHE%\PCXTools_3.0.eng\FreeFileSyncv5.0\FreeFileSync.exe" "%CM
DCACHE%\PCXTools_3.0.eng\FreeFileSyncv5.0\SyncEverythingAllTheTime.ffs_batch"
and paste into CMD window, the command works as expected.
Is there no support for environment variables in the command line field in
RealTimeSync? If not, could that be added?