View previous topic :: View next topic |
Author |
Message |
steveDoyle
Joined: 04 Sep 2009 Posts: 108 Location: Manchester
|
Posted: Thu Feb 04, 2021 12:16 pm Post subject: Automated check for updates |
|
|
HI
I am trying to get my applications to automatically check for if updated versions are available. The latest version would be stored on a public facing website in a simple file (.htm or .txt)
My initial approach would be to try and open the file, read contents and then look for appropriate information. How (if possible) would i pass the web address to the OPEN() function (ip address unknown)?
Another approach maybe to copy the file to the TEMP folder and then examine it
I can view the version file using %wb but ideally would like to access the contents
If anybody has any suggestions or have an alternative approach i would be grateful
Thanks
Steve |
|
Back to top |
|
|
silverfrost Site Admin
Joined: 29 Nov 2006 Posts: 191 Location: Manchester
|
Posted: Thu Feb 04, 2021 12:26 pm Post subject: |
|
|
Do you mean an updated executable (and possibly other files)? |
|
Back to top |
|
|
steveDoyle
Joined: 04 Sep 2009 Posts: 108 Location: Manchester
|
Posted: Thu Feb 04, 2021 12:31 pm Post subject: |
|
|
Hi
correct. initially executables but in principle its use could be extend to other files
thx
steve |
|
Back to top |
|
|
Robert
Joined: 29 Nov 2006 Posts: 445 Location: Manchester
|
Posted: Thu Feb 04, 2021 12:49 pm Post subject: |
|
|
Have you seen this:
https://www.silverfrost.com/ftn95-help/clearwinp/library/read_url_.aspx
You could have a simple web page that contains the text for the version of your downloadable software. You compare it to the running version and if the web one is different you download it (via the same library function). |
|
Back to top |
|
|
steveDoyle
Joined: 04 Sep 2009 Posts: 108 Location: Manchester
|
Posted: Thu Feb 04, 2021 12:56 pm Post subject: |
|
|
Robert
this seems to be exactly what i am looking for. I must seem more time reading the on-line help
thanks
Steve |
|
Back to top |
|
|
|