Log causes of changes

Get help for specific problems
Posts: 7
Joined: 9 Oct 2012

cocorustypat

OK, now I have RTS working to show me what changes are being made to folders
(thanks Zenju).

cmd /c echo %changed_file% %username% %weekday% %date% %hour%"."%min%"."%sec%
>> log.txt

However, it would be even better if I could log what the user did to the
changed file - e.g. copied, deleted, renamed etc. Is this possible?

Thanks in anticipation.
User avatar
Site Admin
Posts: 7211
Joined: 9 Dec 2007

Zenju

I changed the environment variable name "changed_file" to "change_path" and
added a new one called "change_action":
[404, Invalid URL: http://freefilesync.sourceforge.net/FreeFileSync_5.9_beta_setup.exe]

The results however are not perfect: Often change notification do not come
isolated, but in pairs. E.g. a "move" is notified as a "create" and an
"delete". However in the current form, RTS will only report one of the two, in
my test usually the "delete". Nevertheless it should still be an improvement
to have "change_action".
User avatar
Site Admin
Posts: 7211
Joined: 9 Dec 2007

Zenju

Just to clarify: This is a limitation of reporting the info via an environment
variable only. Internally RTS sees a list of all changes, it's just that it
cannot report this list in a single env. variable.
Posts: 7
Joined: 9 Oct 2012

cocorustypat

Many thanks. I will give it a try and let you know how it goes.

Cheers.
Posts: 7
Joined: 9 Oct 2012

cocorustypat

OK, that is a big improvement. The only issue, as you identified, is the lack
of clarity around a rename or move. Even if the system only returns a DELETE
value, would it be possible, in this case, to show the old and new file names
which would indicate that the file was renamed.

Thanks again.
Posts: 7
Joined: 9 Oct 2012

cocorustypat

I have discovered a problem (or revealed a misunderstanding): the %username%
variable records my name as the owner of the RTS task and doesn't show the
name of others as the change, delete, add files.

Is there a way to capture the relevant user's name please.
User avatar
Site Admin
Posts: 7211
Joined: 9 Dec 2007

Zenju

> show the old and new file names which would indicate that the file was
renamed.


The information is generally there, but we'd need a mechanism to transfer a
list of items. An environment variable holds only a single value.


> Is there a way to capture the relevant user's name please.


Unfortunately not, technically the only available information is "action" and
"file name"