Logfile Name

Discuss new features and functions
Posts: 45
Joined: 20 May 2008

arrmo

Hi,

Is there a way to determine the name of the log file used when running a batch
job? I ask because I'd like to send the log file in the body of an email, but
the filename changes each time.

Thanks!
User avatar
Site Admin
Posts: 7210
Joined: 9 Dec 2007

Zenju

> Is there a way to determine the name of the log file

Not directly. If it needn't be 100% accurate one could assemble the name from
current date and time before the sync-operation.
Or maybe the custom logfile directory can be used somehow?

Regards, Zenju
Posts: 45
Joined: 20 May 2008

arrmo

Hi,

I found a workaround - as part of the batch file to send an email I check for
the most recent file. Do you want the info for your readme?

Thanks!

Anonymous

For similar needs I have the bat-file set up like this (blat is the tool to
send e-mails):
<pre><code>
DEL /Q *.log

FreeFileSync.exe backup.ffs_batch

FOR %%i IN (*.log) DO blat ....
</code></pre>
User avatar
Site Admin
Posts: 7210
Joined: 9 Dec 2007

Zenju

Clever trick! ;) However using "move" instead of delete could be a bit less
"final".
Posts: 3
Joined: 2 Jul 2013

sawdustagain

Hi,

I found a workaround - as part of the batch file to send an email I check for
the most recent file. Do you want the info for your readme?

Thanks!arrmo
"as part of the batch file to send an email I check for
the most recent file"

I'd be interested to learn how you do that.