Comparing file versions

G

Guest

I've got an application which allows users to map document (Word, Excel,
PowerPoint) files to certain events they have performed. When they perform
this mapping, it copies the document to a server and stores it with a
sequentially numbered file name. It also stores the path of the original
file and this new file name in the database.

What I want to do is find some way of determining whether the file in the
original path and the one on the server are still synchronized (same file
with no changes). If the FileLen() function returns different sizes for the
two files, I can assume that they are no longer synchronized, but if the
FileLen function returns the same size and the FileDateTime() function
returns different times, that may only mean that the file was accessed and
saved (without changes).

I would like to avoid copying the file again if I don't have to. Anyone got
any ideas?
 
S

Stefan Hoffmann

hi Dale,

Dale said:
What I want to do is find some way of determining whether the file in the
original path and the one on the server are still synchronized (same file
with no changes).
I would like to avoid copying the file again if I don't have to. Anyone got
any ideas?
Use any kind of finger print, e.g. MD5, for comparision.

http://www.freevbcode.com/ShowCode.Asp?ID=741


mfG
--> stefan <--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top