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!
Logfile Name
- Posts: 45
- Joined: 20 May 2008
- Site Admin
- Posts: 7210
- Joined: 9 Dec 2007
> 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
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
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!
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!
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>
send e-mails):
<pre><code>
DEL /Q *.log
FreeFileSync.exe backup.ffs_batch
FOR %%i IN (*.log) DO blat ....
</code></pre>
- Site Admin
- Posts: 7210
- Joined: 9 Dec 2007
Clever trick! ;) However using "move" instead of delete could be a bit less
"final".
"final".
- Posts: 3
- Joined: 2 Jul 2013
"as part of the batch file to send an email I check forHi,
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
the most recent file"
I'd be interested to learn how you do that.