Auto-Update script
Small script I wrote long time ago - I was delaying release, because it was not finished, however I decided to release it - maybe small bits of code will be useful for you or you could just check it and wait for some (at least beta ;)) version.
I am using it however for some utilities like SysInternals. So what it can do?
If you have utilities WITHOUT version number in name (for example PsTools.zip), this script can automatically check and automatically download new version whenever it is available.
Configuration
Configuration is really simple:
- In Configuration folder create new folder (for example Handle)
- In this folder create file with SAME name (Handle\Handle.ini)
- In this file, add line URL=xxx, where xxx is URL of target file (for example URL=http://download.sysinternals.com/Files/Handle.zip)
- That's it - you auto update configuration for Handle from SysInternals is finished
Usage
Again, I tried to keep it simple :) To use it, just run Auto-Update.cmd with parameter /Update (only supported parameter now, will add more in future). After this parameter, you must specify name of package you want to update or "*" to update all packages. So if I want to update Handle package created above, I will run Auto-Update /Update Handle. If I want to update all packages, I will run Auto-Update /Update *.
Technical details
Well, there is nothing more about this small, but useful script. It is using WGet to get timestamps\download files and EchoX (really great utility) for echoing different colors.
P.S.: I "hosted" project on my Live Drive - so far I really like this new service from Windows Live :)