• Batch Files - Updating Software
    12 replies, posted
Does anyone know how I would create a batch file to check for a program change/update, then download the update? Huh, I suppose it would have to then delete the old software, extract the files, then delete the archive, but I'm familiar with forfiles.. I'm also working on automatic server installment through a website. Though this should belong in the web dev section, how about creating a batch file and running it based on the parameters of a form filled out from a website? With a little more web knowledge, I think I could piece this together. Not aware of the syntax (!) I guess it would be more useful to create a .txt file through the website, but I'm sure the work behind it is the same.
So basically a linux package manager.
Oh, yes. Actually, I would prefer creating a .txt file that's placed on the webhost, then have a .bat file access any parameters contained within the .txt. I guess the .txt file would be overwritten at each beckoning to simplify the .bat file, and the .bat file would do the work of creating a .txt file and running the software. Oh, this is easier than I thought. Hm, how about something similar to if statements, such as, if the file retrieved from the website had a different variable than previously, carry on with the rest of the script.
So developments have been made. I need to write a script, probably in C#, that generates a random number that is not a number that already exists in an external file, then outputs that number. It is for port selection. The one thing I don't know is how to import a file into a C# script, then export a file.
[url]http://autoupdaterdotnet.codeplex.com/[/url] Might have a look at that then. Check the documentation, it has a step by step guide of setting it up.
Thank you, I'll look into. As it turns out, for something simple, I'm using wget for Windows. Edit: Moved to the WAYWO as it's not directly related to this topic
i used to program in vbs and i have a really good way to update or to check to see if your program needs updating. If you want i can look for it and i can post it. The thing is i wrote it back in high school and it was a while back. but i know i have it somewhere.
Hah, well I guess I wouldn't mind, if I found out how to dynamically adjust the version difference of a file generated through a website.
[QUOTE=Duze;42433660]Hah, well I guess I wouldn't mind, if I found out how to dynamically adjust the version difference of a file generated through a website.[/QUOTE] There are many ways. one of them you can have the client sign into a database and get the information from there and it be done through a program or you can use your .Txt method.
I guess I could just periodically access a URI using task scheduler, and if there's a different name, extract, or delete and move.
Oh, md5
Sorry, you need to Log In to post a reply to this thread.