Feature Request: Run Command before Synchronization

Discuss new features and functions
Posts: 2
Joined: 26 Jun 2019

nenico

Hello,

there is already a feature to run commands after synchronizing two folders.
sync.JPG
sync.JPG (15.96 KiB) Viewed 1151 times
I have a case where it would be convenient to run a command before synchronization happens.

For example call a SVN Client to fill directory a and then synchronize it with directory b.

Would it be interesting for you to implement this?

Best regards

Nic
User avatar
Posts: 4055
Joined: 11 Jun 2019

xCSxXenon

You could create a .bat script that runs the command you want, then runs freefilesync.exe with a batch job as the only argument afterwords. You will have to adjust the copy command to whatever applies to your situation and change the batch job filename

--------------------------
rem fill directory a
copy "\\temp" "\\...\directory a"
rem Start sync
start "" "freefilesync.exe" "batchjob.ffs_batch"
Posts: 2
Joined: 26 Jun 2019

nenico

You could create a .bat script that runs the command you want, then runs freefilesync.exe with a batch job as the only argument afterwords. You will have to adjust the copy command to whatever applies to your situation and change the batch job filename

--------------------------
rem fill directory a
copy "\\temp" "\\...\directory a"
rem Start sync
start "" "freefilesync.exe" "batchjob.ffs_batch" xCSxXenon, 26 Jun 2019, 18:00
Hello xCSxXenon,

thank you very much for your fast answer.

I really could of used my own brain to get to this result. I think I will do it how you described.

If there isn't any other reason to implement the suggested feature, this thread can be closed :-)

Thank you and greetings from Germany

nenico