Files, how to compare

Hi @ll,
I want to compare webfiles (html, zip, jpg, doc, txt, ....), but only the content which is shown in the Browserwindow (webbrowser control). How can I do it at best Tags, creationtime TCP/IP-adress and such infos must not be compared!
Tank You for help Jo
Answer this question

Files, how to compare

  • rogerdubie

    Hi,

    Can you be more specific about what you intend to do

    When you say "only the content that is shown in the browser window" how does that relate to a jpg etc   What I mean to say is what part of a jpg would you expect not to show in the browser control and what part of a zip file would you expect to show there

    What exactly are you wanting to compare in these dissimilar file types


  • Johannes7060

    Jo A. Kim wrote:
    Hi

    I want to compare everything which is displayed on the screen (webbrowser control) but no background informations!
    I am searching for a solution to find out if a file in the web as been changed or not.. The most files are created on the fly and the timestamp is a new one, but the content as not been changed.
    I think one solution could be to print the file into a prn-file and to compare this prn.file. But how can I put this information to the printer without the printdialog
    I hope You understand what I want.

    Ok, so there are a few avenues you might be able to take. I might be able to provide some ideas for you but I have never tried to do something like this before.

    First, since you want to compare all the elements on a web page (all the zip files, jpgs, and html linked on a page) you'll have to parse out those links.

    Once you have those links I would store the URL the file is found at and a CRC value of the file into a database.

    Then the next time you access the file, you could calculate its CRC and compare that to the CRC stored in your database. If the CRCs are different you could flag the file as being changed.

    Another possible solution might be to use the Internet Explorer cache somehow to compare the locally stored file and the file online.

    I'm sorry if I haven't answered the question, but hopefully I've given you some ideas to work with. There are .NET objects you can use to download the files, and there are c# libraries that you can use to generate the unique CRC for each file.

    Good luck!


  • ERK

    Hi

    I want to compare everything which is displayed on the screen (webbrowser control) but no background informations!
    I am searching for a solution to find out if a file in the web as been changed or not.. The most files are created on the fly and the timestamp is a new one, but the content as not been changed.
    I think one solution could be to print the file into a prn-file and to compare this prn.file. But how can I put this information to the printer without the printdialog
    I hope You understand what I want.

  • Engage

    Hi,

    You may try to take a look as below.
    http://www.experts-exchange.com/Programming/Programming_Languages/Visual_Basic/Q_21401535.html

    Also I just wonder why you need to do so.
    Because the IE have powerful error tolerant, that is to say, even if there are error occurred(generally it is script), the IE still will show the result.

    If you still have any concern, please feel free to post here.

    Best regards,
    Peter Huang



  • Files, how to compare