Question : Batch file to check web servers for updated software and download it if there is.

I am looking for a batch file that will contact servers out on the web that host certain applications and check for updated versions. Then if a newer version exists it will down it into a local repository and then remove the older version from the local repository.

 I have been using BitAdmin in a batch file that works pretty well, but you have to know the file name and the name has to remain the same in order for the batch file to work every time. For example, if I wanted to get the latest version of Auslogics disk-defrag I could use this command in a batch file:

bitsadmin /transfer DiskDefrag /priority high http://www.auslogics.com/en/downloads/disk-defrag/disk-defrag-setup.exe c:\temp\disk-defrag-setup.exe

And it will work every time because the name stays the same. But if I wanted to get the latest version of say Ccleaner it would only work until they updated to a newer version because they add the version number to the name.

The last parameter of the bitsadmin command you can change the name of the file, basically like doing a "save as" so that I can keep the local files named the same so all my local install batch files will function correctly, but I need a little help with getting the files down that have ever changing names.

Any ideas? is there a better way to do this?

 Thanks for any help you have to offer.

RBennett

Answer : Batch file to check web servers for updated software and download it if there is.

Sorry to waste your time.  It turns out I was not typing in the correct URL.  I mean I wasn't adding /owa or /exchange to the end.  This behaviour is expected.  I didn't realize.  This article explains it: http://blogs.technet.com/b/isablog/archive/2008/04/29/troubleshooting-owa-2007-publishing-rules-on-isa-server-2006.aspx.  I don't know why that was so hard to figure it.  Anyway thanks for your help.
Random Solutions  
 
programming4us programming4us