tinkythomas Posted September 5, 2008 Posted September 5, 2008 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.
Szhlopp Posted September 5, 2008 Posted September 5, 2008 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 RegEx/RegExRep Tester!Nerd Olympics - Community App!Login UDFMemory UDF - "Game.exe+753EC" - CE pointer to AU3Password Manager W/ SourceDataFiler - Include files in your au3!--- Was I helpful? Click the little green '+'
tinkythomas Posted September 5, 2008 Author Posted September 5, 2008 (edited) 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 September 5, 2008 by tinkythomas
rasim Posted September 6, 2008 Posted September 6, 2008 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
PartyPooper Posted September 7, 2008 Posted September 7, 2008 (edited) Check my sig for INetFileUpdate. Edit: Typo Edited September 7, 2008 by PartyPooper
tinkythomas Posted September 7, 2008 Author Posted September 7, 2008 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now