File comparison

C

Can Erten

I am trying to buid an auto update feature for my application. I am
implementing it by comparing two files, one from the web server and
one from the local.

I thought of 3 possibilities which any of them didn't help.
1 - Compare the version of the assembly. Worked perfectly, however I
couldn't overwrite (it has a new version) because the file is already
in use. And I couldn't unload the assembly once loaded. I also tried
appdomain and still can't do because the lack of appdomain functions in
compact framework.

2 - Compare the file with GethashCode() which leads to different
versions of gethashcode because server side version and compact
framework version of that function gives totaly different results.

3 - Compare by the creation time. This one also fails, because
lastcreation time of file does not have set property.

What else can I do to say that those files are identical and no need
to update ?
 
C

Can Erten

I just set the server date time to an xml file, and compare xml file
version to the server one. When an update occurs I write to the xml
file the server file time.
 

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