Hello! Is there a built in mechanism in FFS to retrieve the log file name
after an operation has completed? Or is my best bet to code the batch
file/script to look for the newest file in the log folder?
The reason I ask is because I'd like to present the user with some feedback
after the operation to inform the user about any sync conflicts (and what was
done). Since the command window does not currently show any progress, I was
considering parsing the log file and presenting the relevant lines to the
user.
If anyone has any other ideas, please let me know :)
Thanks!
Retrieve Log File Name In Silent Mode
- Posts: 7
- Joined: 6 Sep 2012
- Site Admin
- Posts: 7212
- Joined: 9 Dec 2007
There are two ways to get to the logfile:
1. use %appdata%\LastSyncs.log"
> Or is my best bet to code the batch file/script to look for the newest file
in the log folder?
2. Yes, if you can do that.
> I'd like to present the user with some feedback after the operation
And just using the "show progress dialog" which waits on the results dialog
including the log info is not feasible?
See also:
[404, Invalid URL: https://sourceforge.net/tracker/?func=detail&aid=3563965&group_id=234430&atid=1093083]
1. use %appdata%\LastSyncs.log"
> Or is my best bet to code the batch file/script to look for the newest file
in the log folder?
2. Yes, if you can do that.
> I'd like to present the user with some feedback after the operation
And just using the "show progress dialog" which waits on the results dialog
including the log info is not feasible?
See also:
[404, Invalid URL: https://sourceforge.net/tracker/?func=detail&aid=3563965&group_id=234430&atid=1093083]
- Posts: 7
- Joined: 6 Sep 2012
Thanks for pointing out the LastSyncs.log! (There was a minor typo: the
location is "%appdata%\FreeFileSync\LastSyncs.log" - just FYI for anyone else
reading this thread and looking for this file).
True, I just learned about the Show Progress Dialog box :) But I'd like to
control the output a little more for a project I am working on:
1. I am currently running a command window and wanted everything to be in the same window rather than having FFS appear as a second window while running.
2. I'd like to show the final results to appear for just a small period of time (a few seconds) after it is completed to give an opportunity to the end user to view the results if they are interested. I want the window to close after a few seconds. I don't believe that there is a way to specify to keep the results open for a period of time (or at least I have not learned that yet).
Thanks!
location is "%appdata%\FreeFileSync\LastSyncs.log" - just FYI for anyone else
reading this thread and looking for this file).
True, I just learned about the Show Progress Dialog box :) But I'd like to
control the output a little more for a project I am working on:
1. I am currently running a command window and wanted everything to be in the same window rather than having FFS appear as a second window while running.
2. I'd like to show the final results to appear for just a small period of time (a few seconds) after it is completed to give an opportunity to the end user to view the results if they are interested. I want the window to close after a few seconds. I don't believe that there is a way to specify to keep the results open for a period of time (or at least I have not learned that yet).
Thanks!