Come Home Baby!

starcraft

Centurion
Joined
Jun 29, 2003
Messages
167
Location
Poway CA
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..
 
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.
 
You mean download the file?
Like this:
Visual Basic:
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.
 
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?
 
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:
Visual Basic:
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:
Visual Basic:
System.Diagnostics.Process.Start("path to the executable")
 
Back
Top