Jump to content
Sign in to follow this  
tinkythomas

Get file version from internet?

Recommended Posts

tinkythomas

Hi,

Is it possible to retrieve the file timestamp from a server? I am trying to write a script that checks for updates and if the file is newer than the installed version then download it and install.

At the moment I am compiling the latest version of the file with my script which I then redistribute to my clients. The script checks if the insalled version is older than the compiled version and if it is then it installs this new file. This is a very time consuming and inefficient way of doing things.

Any help would be greatly appreciated.

Share this post


Link to post
Share on other sites
Szhlopp

Hi,

Is it possible to retrieve the file timestamp from a server? I am trying to write a script that checks for updates and if the file is newer than the installed version then download it and install.

At the moment I am compiling the latest version of the file with my script which I then redistribute to my clients. The script checks if the insalled version is older than the compiled version and if it is then it installs this new file. This is a very time consuming and inefficient way of doing things.

Any help would be greatly appreciated.

Have an INI on the server:

FileVersion.ini

[FileInfo]

Version = 1.5

Download= Http://www.myserverlocation.com/Files/Version1.5.exe

Share this post


Link to post
Share on other sites
tinkythomas

Have an INI on the server:

FileVersion.ini

[FileInfo]

Version = 1.5

Download= Http://www.myserverlocation.com/Files/Version1.5.exe

Thanks but I should have said in my post that I need to do this on an ftp server, "ftp.download.cg.yu/sistem/" for example.

My initial thoughts were to use the InetGet() function and download to the desktop, do the comparison using function FileGetTime() but I wanted to avoid downloading if the file is not newer.

Edited by tinkythomas

Share this post


Link to post
Share on other sites
rasim

Thanks but I should have said in my post that I need to do this on an ftp server, "ftp.download.cg.yu/sistem/" for example.

My initial thoughts were to use the InetGet() function and download to the desktop, do the comparison using function FileGetTime() but I wanted to avoid downloading if the file is not newer.

See here

Share this post


Link to post
Share on other sites
PartyPooper

Check my sig for INetFileUpdate.

Edit: Typo

Edited by PartyPooper

Share this post


Link to post
Share on other sites
tinkythomas

Sorry for the late reply, but just to say thank-you very much rasim and PartyPooper for the links and your help, that was exactly what I was looking for.

Regards

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  

×