I made it as a client downloader but some of you might want to use it for different reasons.
you can check out the SVN here
Code: Select all
http://ffxi-a.googlecode.com/svn/trunk/src/client-downloader/
Code: Select all
http://ffxi-a.googlecode.com/svn/trunk/src/client-downloader/
It downloads parts from his web server.tagban wrote:I tries this out. Is this just grabbing the torrent? Or what?
Code: Select all
string part1 = @"C:/FFXI_INSTALL/FFXI.part01.rar";
Console.WriteLine(File.Exists(part1) ? true : false);
if (File.Exists(part1) == false)
{
error.Text = "C:/FFXI_INSTALL/FFXI.part01.rar";
textBoxSourceFile.Text = "http://www.ffxi-a.com/download/FFXI.part01.rar";
backgroundWorker1.RunWorkerAsync();
return;
}
string part2 = @"C:/FFXI_INSTALL/FFXI.part02.rar";
Console.WriteLine(File.Exists(part2) ? true : false);
if (File.Exists(part2) == false)
{
error.Text = "C:/FFXI_INSTALL/FFXI.part02.rar";
textBoxSourceFile.Text = "http://www.ffxi-a.com/download/FFXI.part02.rar";
backgroundWorker1.RunWorkerAsync();
return;
}
string part3 = @"C:/FFXI_INSTALL/FFXI.part03.rar";
Console.WriteLine(File.Exists(part3) ? true : false);
if (File.Exists(part3) == false)
{
error.Text = "C:/FFXI_INSTALL/FFXI.part03.rar";
textBoxSourceFile.Text = "http://www.ffxi-a.com/download/FFXI.part03.rar";
backgroundWorker1.RunWorkerAsync();
return;
}
string part4 = @"C:/FFXI_INSTALL/FFXI.part04.rar";
Console.WriteLine(File.Exists(part4) ? true : false);
if (File.Exists(part4) == false)
{
error.Text = "C:/FFXI_INSTALL/FFXI.part04.rar";
textBoxSourceFile.Text = "http://www.ffxi-a.com/download/FFXI.part04.rar";
backgroundWorker1.RunWorkerAsync();
return;
}
string part5 = @"C:/FFXI_INSTALL/FFXI.part05.rar";
Console.WriteLine(File.Exists(part5) ? true : false);
if (File.Exists(part5) == false)
{
error.Text = "C:/FFXI_INSTALL/FFXI.part05.rar";
textBoxSourceFile.Text = "http://www.ffxi-a.com/download/FFXI.part05.rar";
backgroundWorker1.RunWorkerAsync();
return;
}
string part6 = @"C:/FFXI_INSTALL/FFXI.part06.rar";
Console.WriteLine(File.Exists(part6) ? true : false);
if (File.Exists(part6) == false)
{
error.Text = "C:/FFXI_INSTALL/FFXI.part06.rar";
textBoxSourceFile.Text = "http://www.ffxi-a.com/download/FFXI.part06.rar";
backgroundWorker1.RunWorkerAsync();
return;
}
string part7 = @"C:/FFXI_INSTALL/FFXI.part07.rar";
Console.WriteLine(File.Exists(part7) ? true : false);
if (File.Exists(part7) == false)
{
error.Text = "C:/FFXI_INSTALL/FFXI.part07.rar";
textBoxSourceFile.Text = "http://www.ffxi-a.com/download/FFXI.part07.rar";
backgroundWorker1.RunWorkerAsync();
return;
}
string part8 = @"C:/FFXI_INSTALL/FFXI.part08.rar";
Console.WriteLine(File.Exists(part8) ? true : false);
if (File.Exists(part8) == false)
{
error.Text = "C:/FFXI_INSTALL/FFXI.part08.rar";
textBoxSourceFile.Text = "http://www.ffxi-a.com/download/FFXI.part08.rar";
backgroundWorker1.RunWorkerAsync();
return;
}
string part9 = @"C:/FFXI_INSTALL/FFXI.part09.rar";
Console.WriteLine(File.Exists(part9) ? true : false);
if (File.Exists(part9) == false)
{
error.Text = "C:/FFXI_INSTALL/FFXI.part09.rar";
textBoxSourceFile.Text = "http://www.ffxi-a.com/download/FFXI.part09.rar";
backgroundWorker1.RunWorkerAsync();
return;
}
string part10 = @"C:/FFXI_INSTALL/wrar500.exe";
Console.WriteLine(File.Exists(part10) ? true : false);
if (File.Exists(part10) == false)
{
error.Text = "C:/FFXI_INSTALL/wrar500.exe";
textBoxSourceFile.Text = "http://www.ffxi-a.com/download/wrar500.exe";
backgroundWorker1.RunWorkerAsync();
return;
}
ectract.Visible = true;
progressBar1.Visible = false;
Process.Start("C:/FFXI_INSTALL/wrar500.exe");