Use RTS to call multiple FFS batch files

Get help for specific problems
Posts: 5
Joined: 18 Aug 2023

kludovic

Can you use RTS to monitor one folder and sequentially run multiple batch files?
User avatar
Posts: 4059
Joined: 11 Jun 2019

xCSxXenon

You can write your own batch script that runs multiple FFS commands and then have RTS run that batch script
User avatar
Posts: 2453
Joined: 22 Aug 2012

Plerry

According to the FFS Command-line Manual page, you can invoke FFS by specifying an arbitrary number of sync configuration files.

So, in the command line in RTS that invokes FFS, you can list your multiple FFS sync configurations.
User avatar
Posts: 4059
Joined: 11 Jun 2019

xCSxXenon

That is a possibility, but the manual says that it opens a GUI for that, and typically you use RTS to avoid any graphical interaction
User avatar
Posts: 2453
Joined: 22 Aug 2012

Plerry

> but the manual says that it opens a GUI for that

The manual only says
"If you pass a ffs_gui file, FreeFileSync will start in GUI mode"
But that is to be expected, as you open a GUI sync configuration.

Invoking FFS via command-line specifying just one or more *.ffs_batch configurations should still start FFS in batch-mode, not in GUI-mode.
User avatar
Posts: 4059
Joined: 11 Jun 2019

xCSxXenon

It also says in step 4:
"When more than one configuration file is provided, FreeFileSync will merge everything into a single configuration with multiple folder pairs and start in GUI mode:"
User avatar
Posts: 2453
Joined: 22 Aug 2012

Plerry

@xCSxXenon: Sorry, I overlooked that ...