Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
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..
  • *Experts*
Posted
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.
  • *Experts*
Posted

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.

Posted
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?
  • *Experts*
Posted
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")

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...