ItsMods

Full Version: [need help] how to make dbnetwork updater?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hi all itsmod members.
how to make dbnetwork updater?(like iw5m)
pls make a tutorial for me.
tnx .Sad
try to post in the HELP section...
Simply I think you can do this. When the app opening, U will need to download a txt file. It includes which updates are and the links. So after reading it, will automatically download the files and updates.

I think thats what u asked

using System.Net;
private void chckUpdates()
{
using (WebClient Client = new WebClient ())
{
Client.DownloadFile("http://www.abc.com/file/update/myuptd.txt", @"D:\myuptd.txt");
}
}

private void readtheTxt()
{
string[] updateLinks = File.ReadAllLines(@"D:\myuptd.txt");
foreach (string links in updateLinks)
{
using (WebClient Client = new WebClient ())
{
Client.DownloadFile(links.ToString(), @you can use simple method to change the save file name);
}
}
}


Simply add the links of updated files, in the txt file
Hope My answer helped you.
I made a tut. Plz see it, it might help u