I have a network drive that I sync my database to upon saving any changes. It also sync's when first opening the database. But I would like to be able to compare the two versions before syncing and if they are the same then stop the sync from happening. Is there a way to compare two databases to see if they are different?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I a word no. KeePass doesn't have a file comparison method in triggers.
You could create a batch file that compares the files and then sets an environment variable that can be tested in a trigger - this may or may not work depending on when KeePass reads the variables.
You can't perform a file size comparison because KeePass compresses the data and the resulting size varies depending on .NET version and hardware.
cheers, Paul
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have a network drive that I sync my database to upon saving any changes. It also sync's when first opening the database. But I would like to be able to compare the two versions before syncing and if they are the same then stop the sync from happening. Is there a way to compare two databases to see if they are different?
I a word no. KeePass doesn't have a file comparison method in triggers.
You could create a batch file that compares the files and then sets an environment variable that can be tested in a trigger - this may or may not work depending on when KeePass reads the variables.
You can't perform a file size comparison because KeePass compresses the data and the resulting size varies depending on .NET version and hardware.
cheers, Paul
I was hoping that was not the answer. Thanks anyway.