RealTimeSync command line with env var fails

Discuss new features and functions
Posts: 74
Joined: 17 Mar 2008

mfreedberg

We are trying to use an environment variable in the command line field in
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>&quot[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?
User avatar
Site Admin
Posts: 7210
Joined: 9 Dec 2007

Zenju

Excellent timing, I fixed this problem just today with v5.7 :)
Posts: 74
Joined: 17 Mar 2008

mfreedberg

Excellent, is that now production ready or can we download a pre-release
version to test??
Posts: 74
Joined: 17 Mar 2008

mfreedberg

Ah, I see it, downloading now....and testing for file format changes as well.
Thanks again!!
Posts: 74
Joined: 17 Mar 2008

mfreedberg

So far so good, that is looking much better! Now I need to have a play with
the file versioning stuff for the home backup...