Yes, this is possible. But again, you can't be sure that the script has finished before the computer is shutting down. And the shutdown is then always waiting the delay time even if it's not needed. For example when the sync is successful and the mail script doesn't have to search for errors in the log files.
For me it's OK if you set the shutdown in the FFS batch. This is very easy because you even don't need to write a script. But it may be not the best solution under all circumstances.
Send email notification
- Posts: 68
- Joined: 13 Aug 2018
- Posts: 11
- Joined: 10 Aug 2021
How to set in the ffs batch? Shutdown with delay?
- Posts: 2450
- Joined: 22 Aug 2012
At the bottom of the Synchronization Settings (F8) in the FFS GUI you find the "Run a command" option, where you select the condition to run the command, and to specify the command.
- Posts: 3
- Joined: 25 Nov 2021
Hi, you still around. I tried to download BLAT, but get a Sandbox malware warning from our ZScaler sw.we use blat (command line smtp sender)
the next line in bat file after FFS is blat, which sends log.
that's it teymur-bagirov, 14 Nov 2015, 12:24
- Posts: 19
- Joined: 8 Nov 2018
Hi,
Is there any way for the script to accept special characters, such as "ã". I'm trying to translate to Portuguese, but it doesn't accept some words that have special characters.
Thanks,
Is there any way for the script to accept special characters, such as "ã". I'm trying to translate to Portuguese, but it doesn't accept some words that have special characters.
Thanks,
- Posts: 19
- Joined: 8 Nov 2018
Ok, I managed to get the texts in the script to appear correctly by saving the script in ANSI format instead of UTF8 format. I don't know if it's the perfect solution, but it partially solved the problem. However, in the list of errors, the crazy characters still appear. When consulting the TXT log file, the text is show correct, even though the log file is in UTF8 format. Is it possible for the characters to all appear correctly?Hi,
Is there any way for the script to accept special characters, such as "ã". I'm trying to translate to Portuguese, but it doesn't accept some words that have special characters.
Thanks, sagitario, 11 Apr 2022, 17:25
Thanks,
- Posts: 5
- Joined: 16 Nov 2022
Hello everybody
I've two small problems with this script.
1st: I'm using it on many PCs and servers, with gmail as mail server, without an issue, but on a server with Windows Server 2022 it doesn't work. I suspect something is wrong in my configuration or in the server configuration, but even enabling debug in the script I can't find what's wrong. Do you have any suggestion how to debug the problem?
2nd: I red (maybe wrong) that if I enable the simple text logs the script is able to report in the email the warning or error lines. Well, I enabled simple text logs in FreeFileSync options ant the logs are correctly saved in simple text *.log format, but I still receive the emails with only error or warning in the subject, but no log warning/error lines in the text. Do you have any advice?
Thank you!
I've two small problems with this script.
1st: I'm using it on many PCs and servers, with gmail as mail server, without an issue, but on a server with Windows Server 2022 it doesn't work. I suspect something is wrong in my configuration or in the server configuration, but even enabling debug in the script I can't find what's wrong. Do you have any suggestion how to debug the problem?
2nd: I red (maybe wrong) that if I enable the simple text logs the script is able to report in the email the warning or error lines. Well, I enabled simple text logs in FreeFileSync options ant the logs are correctly saved in simple text *.log format, but I still receive the emails with only error or warning in the subject, but no log warning/error lines in the text. Do you have any advice?
Thank you!
- Posts: 68
- Joined: 13 Aug 2018
Regarding Windows Server 2022: I don't have an idea. Check the firewall settings regarding open ports for outgoing traffic for SMTP and SMTPS. Set the logging option for blocked connections in a file for the firewall. So you can see if there's a blocked connection by the firewall. Or there are security settings regarding VBScript.
Regarding log files: Yes, you're right. The script can only parse the text based log files of FreeFileSync and not the html logs. Have a look at the path where you save the log files. Is the same path set in the script? With the debug switch in the script you should see if the script is finfing and parsing the log files.
Regarding log files: Yes, you're right. The script can only parse the text based log files of FreeFileSync and not the html logs. Have a look at the path where you save the log files. Is the same path set in the script? With the debug switch in the script you should see if the script is finfing and parsing the log files.
- Posts: 5
- Joined: 16 Nov 2022
I'll check but I don't know if that's so simple cause in tebug mode I can see the sending email lines without errors o retryingRegarding Windows Server 2022: I don't have an idea. Check the firewall settings regarding open ports for outgoing traffic for SMTP and SMTPS. Set the logging option for blocked connections in a file for the firewall. So you can see if there's a blocked connection by the firewall. Or there are security settings regarding VBScript.TheExpert, 04 Aug 2023, 10:27
The log file path is red in the batch ffs file. Could it be cause FFS switched from english to italian for the file language whei I switched from HTML logs to Text logs?Regarding log files: Yes, you're right. The script can only parse the text based log files of FreeFileSync and not the html logs. Have a look at the path where you save the log files. Is the same path set in the script? With the debug switch in the script you should see if the script is finfing and parsing the log files. TheExpert, 04 Aug 2023, 10:27
- Posts: 68
- Joined: 13 Aug 2018
Oh, you switched from English to Italian? Then the log entries are probably Italian, too. So you have to change it in the script. There you find entries for English and German. Here you have to set the Italian wordings so that the script can find the log lines with errors or warnings.