Jump to content
Sign in to follow this  
YoseMite

Check ... for updates

Recommended Posts

YoseMite

Ey,

I have a website with this file:

update.txt

$update = 1.0

Now I want a application that check every (second? :">) the updates from the website...

(If are update is possible, must download he the update file)

How can I check every ... to updates?

Thx,

YoseMite

Share this post


Link to post
Share on other sites
seandisanti

Ey,

I have a website with this file:

update.txt

$update = 1.0

Now I want a application that check every (second? :">) the updates from the website...

(If are update is possible, must download he the update file)

How can I check every ... to updates?

Thx,

YoseMite

<{POST_SNAPBACK}>

would you really want it checked every second? could probably get away with checking every minute, or even 10 minutes... but that doesn't really matter huh? what i'd do, is have a registry setting created that stores the last version updated to, then you could just use an InetGet() to get the file with the version number from the site, then parse out the version number, and compare it. then execute update if necessary. and throw it all in one big 'While 1' loop with a Sleep(1000) (to check every second)

Share this post


Link to post
Share on other sites
YoseMite

How must I do that with InetGet() ? :$

Share this post


Link to post
Share on other sites
seandisanti

How must I do that with InetGet() ? :$

<{POST_SNAPBACK}>

well the inetget() saves the file to your computer. you can then open that saved file, and read through it until you see the string you're looking for, and save taht value...

checkout InetGet(), FileOpen(), loops, and comparisons

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.