mz241508
03-27-2007, 03:24 PM
Is there a way to check if a .exe file exists on the net?:huh
I am trying to build an updating feature for a project.
Protocol
03-27-2007, 03:41 PM
Depends on what you mean by a file on the net, but I'll venture a "yes" to your question.
I've made updaters all the way back in version 4. If the file is static (ie going to be there for sure), then you can just link directly. Otherwise I would have the project look for a textfile that will always be static. Then in that textfile have the dynamic file or address which can be updated from time-to-time.
As mentioned above, I did a data "handshake" like this where the project looked to my site for a specific textfile. It then compared it's own version to the version listed in the textfile. If that version was greater in number, then it pulled the user info from the textfile and displayed the text (which included all of the updated content and info). It would also give the linked address to the updater file hosted on my site and gave the user a one-click update option. It's actually really simple.
Now if you're talking about active spider-software that searches a sight on its own (without any info being handed over to it), then yes, that can be done too, but it's a bit more involved, but relatively easy. I started working on one a while back with some good results.
Sounds like a fun one!
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.