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:

  1. In Configuration folder create new folder (for example Handle)
  2. In this folder create file with SAME name (Handle\Handle.ini)
  3. In this file, add line URL=xxx, where xxx is URL of target file (for example URL=http://download.sysinternals.com/Files/Handle.zip)
  4. 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 :)

Published Sun, Nov 11 2007 1:22 by martin

Comments

# re: Auto-Update script

Since it only says Vista in the page heading above, I have to ask:  Will this work equally well in XP ro sp2?  If so, I'd consider it a valuable addition to my toolkit of helpful utilities.  Have you given any thoughts to a way to update from multiple sites without having to keep going back to the command line over and over again?

Monday, November 19, 2007 8:26 AM by internet explorer

# re: Auto-Update script

Hi, no, this script is definitely for XP (but should also work on Vista)...

Regarding full updates, I was thinking about it and I will add default action to update all (that means, if you will double-click on script, it will automatically update all tools.

Currently I need to add few features (like messaging, some support to SourceForge etc.) and also troubleshoot little bit, so if there is something you are missing, just let me know.

Tuesday, November 20, 2007 12:41 AM by Martin