FR: Run command BEFORE sync

Discuss new features and functions
Posts: 21
Joined: 17 Nov 2022

FreeFileLove

FreeFileSync allows the user to run commands AFTER sync. It would be great if you could please add the option to run commands BEFORE sync. Thanks!
Posts: 943
Joined: 8 May 2006

therube

BEFORE.bat:
DEL C:\COPYSTUFF\*.TMP
COPY C:\COPYSTUFF\* C:\IREALLYOUGHTTOBACKTHISUP\
ECHO Ready to back up...
pause
{PATHTOFFS}\FREEFILESYNC.exe -DirPair C:\IREALLYOUGHTTOBACKTHISUP\ X:\MYBACKUPS
Posts: 21
Joined: 17 Nov 2022

FreeFileLove

BEFORE.bat:
DEL C:\COPYSTUFF\*.TMP
COPY C:\COPYSTUFF\* C:\IREALLYOUGHTTOBACKTHISUP\
ECHO Ready to back up...
pause
{PATHTOFFS}\FREEFILESYNC.exe -DirPair C:\IREALLYOUGHTTOBACKTHISUP\ X:\MYBACKUPS
therube, 04 Mar 2024, 16:27
Thank you for the suggestion. Unfortunately, something like that won't work well. I have many FFS configurations in the 'Configurations' panel, and I use the FFS GUI to run each configuration as needed. Depending on the configuration, I want to run a tool before the sync process starts. FFS provides a field within each configuration's settings to allow a tool to be run AFTER that sync is done, and I am requesting a similar field in each configuration's settings to allow one or more tools to run AFTER that sync is done.
Posts: 943
Joined: 8 May 2006

therube

Still not what you're wanting then, i.e., directly from within the GUI, but if you still start from a batch file, & you can do the BEFORE before, & then you can pass the wanted .ffs_gui / .ffs_batch name to FFS (so that at least gets your BEFORE & sync order are in the order you want, in a somewhat more automated way).