Send error notification via email


  1. Create a FreeFileSync batch file using "Run minimized".
     

  2. Set error handling to "Exit instantly" or "Ignore errors" to avoid having a pop-up stop the program flow. In case errors occur FreeFileSync will exit with a return code < 0 that can be checked via the ERRORLEVEL batch command.
     

  3. Create a *.cmd or *.bat file to specify the location of FreeFileSync.exe and pass the name of the ffs_batch file as first argument; e.g.:

"C:\Program Files\FreeFileSync\FreeFileSync.exe" "C:\SyncJob.ffs_batch"
@if not errorlevel 0 (
    echo An error occured!
    pause
)



Instead of displaying "An error occurred!" you can specify another command like sending an email notification (using a third party tool).