FR: Run command BEFORE sync
- Posts: 29
- Joined: 17 Nov 2022
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: 1037
- Joined: 8 May 2006
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: 29
- Joined: 17 Nov 2022
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.BEFORE.bat:therube, 04 Mar 2024, 16:27DEL C:\COPYSTUFF\*.TMP
COPY C:\COPYSTUFF\* C:\IREALLYOUGHTTOBACKTHISUP\
ECHO Ready to back up...
pause
{PATHTOFFS}\FREEFILESYNC.exe -DirPair C:\IREALLYOUGHTTOBACKTHISUP\ X:\MYBACKUPS
- Posts: 1037
- Joined: 8 May 2006
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).