Hi there, I'm a new user of your product and reviewing it to consider using it for some automation like tasks. I was wondering if there is a way to script multiple statements in a batch file with multiple folders and multiple filters etc...
What I am looking to do is script something like this:
launch FFS with a parameter/batch file and in the batch file it tells FFS to
Set Inital variables possibly for logging
set Filter for multiple file extensions
Sync folder A and B
set another Filter for multiple file extensions
Sync Folder C and D
set Filter for multiple file extensions
Sync Folder E and F
Check for success of Sync in a log file or return value of the program?
Can FFS do these many Sync attempts in one batch file. Does one need to run each folder sync pair one at a time with a specific batch file for each sync?
Please advise... I was unable to find an answer on your forum with the key words I used.
Thanks...Marcel
Can you have multiple folder sync's in a batch file?
- Posts: 3
- Joined: 19 Jan 2017
- Posts: 3
- Joined: 19 Jan 2017
I'm not sure why I am not getting a reply for what seems to be a simple question... I reviewed documentation and also searched on some keywords on this forum and found no answers. Can anyone let me know if they are doing this and if it is possible? Thanks in advance for your time...Marcel
- Posts: 2523
- Joined: 22 Aug 2012
It might be you are not getting a reply because your question is very specific, and not many people have ever tried using FFS in that fashion ...
Your description is not very exact either.
You describe you have reviewed the documentation. Please make sure that review includes the topics Macro’s and Command Line
https://freefilesync.org/manual.php?topic=macros
https://freefilesync.org/manual.php?topic=command-line
Without having direct experience with the topic, I can imagine you might be able to:
* write a .bat or .cmd file that repetitively calls FFS with the desired parameters,
either as command-line parameters, or by using macro parameters by setting environment
variables in your .bat or .cmd file and referring to the macro-parameters in your sync settings.
* if all else fails, please note that *.ffs_batch files are XML-files.
You might use a .bat. cmd or other scripting file to generate or modify the content of a .such XML file,
call FFS to execute that .ffs_batch file, update the .ffs_batch file according to need, and call
FFS to execute that .ffs_batch file again as many times as desired/needed.
Your description is not very exact either.
You describe you have reviewed the documentation. Please make sure that review includes the topics Macro’s and Command Line
https://freefilesync.org/manual.php?topic=macros
https://freefilesync.org/manual.php?topic=command-line
Without having direct experience with the topic, I can imagine you might be able to:
* write a .bat or .cmd file that repetitively calls FFS with the desired parameters,
either as command-line parameters, or by using macro parameters by setting environment
variables in your .bat or .cmd file and referring to the macro-parameters in your sync settings.
* if all else fails, please note that *.ffs_batch files are XML-files.
You might use a .bat. cmd or other scripting file to generate or modify the content of a .such XML file,
call FFS to execute that .ffs_batch file, update the .ffs_batch file according to need, and call
FFS to execute that .ffs_batch file again as many times as desired/needed.
- Posts: 3
- Joined: 19 Jan 2017
Thanks for the Reply and your time... What I am trying to do is find an alternative sync application that works very similar to a Paid/Licensed sync program we currently use. To avoid the cost of a Development license cost, we are looking at some open source options. With the way FreeFileSync works we would need to redesign a launcher tool we use that calls up a sync tool with a parameter/ specific script file that would perform multiple folder sync's and monitor the log file for success. Having the FreeFileSync tool behave the way it does we would need to invest in redesigning our launcher tool to make it work as you describe above. We are not ruling this tool/ option out, but it would really mean a redesign/ many hours of development time to make this tool work for us.
Thanks for your assistance Plerry.
Thanks for your assistance Plerry.