starcraft Posted July 29, 2003 Posted July 29, 2003 how can i make my program,..... i guess ping or something an IP address and check a value, and if the value is newer then the one it has to load the new one. What i'm trying to do is the have a way for the program to download updates.. Quote
*Experts* mutant Posted July 29, 2003 *Experts* Posted July 29, 2003 The best way to do that is Web Services, then next is database you can connect to to check the version value. If you cant do either then maybe something simple like a file on a webserver that indicates the latest version of the software. Quote
starcraft Posted July 29, 2003 Author Posted July 29, 2003 well, hmm would either of those methods work behind a heavy dutty firewall? if not could i possible put 2 files on my webspace like http://www.myspace.com/version.osngnsdg http://www.myspace.com/version.txt and it would check the version.txt and compair the versions if the one on the site was newer then it would download the new file?srry for the links that was just an example Quote
*Experts* mutant Posted July 29, 2003 *Experts* Posted July 29, 2003 You can put the file at any server as long as the client can connect to it and access the file and then download it. Quote
*Experts* mutant Posted July 29, 2003 *Experts* Posted July 29, 2003 You mean download the file? Like this: Dim webc As New System.Net.WebClient() webc.DownloadFile("address to file file", "path to store the file on the computer") Then you can read the file from the location you picked. Quote
starcraft Posted July 29, 2003 Author Posted July 29, 2003 how would i tell it to download to the loacation of the program where ever that may be? Quote
starcraft Posted July 29, 2003 Author Posted July 29, 2003 also sence u cant replace a file while it is active i would have to close the program. So i would have to have a second program to replace the file. How would i tell the first program to open the second program? Quote
*Experts* mutant Posted July 29, 2003 *Experts* Posted July 29, 2003 how would i tell it to download to the loacation of the program where ever that may be? To do that in the second argument of the DownloadFile() method specify this: Application.StartupPath & "\version.txt" also sence u cant replace a file while it is active i would have to close the program. So i would have to have a second program to replace the file. How would i tell the first program to open the second program? Do you mean that you want to delete it after you read it? Anyway, to open another program use: System.Diagnostics.Process.Start("path to the executable") Quote
starcraft Posted July 29, 2003 Author Posted July 29, 2003 thanks mutant what would i do without you :D Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.