A downloader Project Script

Applications/Tools written to make running DarkStar easier for the rest of us.
Post Reply
Robert
Posts: 33
Joined: Fri Aug 16, 2013 9:14 am

A downloader Project Script

Post by Robert » Sun Sep 22, 2013 7:25 pm

This is a script that will let you make a downloader for anything thing you would like for your users to download.
I made it as a client downloader but some of you might want to use it for different reasons.
Image

you can check out the SVN here

Code: Select all

http://ffxi-a.googlecode.com/svn/trunk/src/client-downloader/

User avatar
tagban
Posts: 352
Joined: Fri Dec 28, 2012 11:31 am
Location: Pennsylvania, USA

Re: A downloader Project Script

Post by tagban » Fri Oct 04, 2013 7:54 am

I tries this out. Is this just grabbing the torrent? Or what?

User avatar
atom0s
Developer
Posts: 537
Joined: Thu Oct 25, 2012 9:52 am

Re: A downloader Project Script

Post by atom0s » Fri Oct 04, 2013 11:43 am

tagban wrote:I tries this out. Is this just grabbing the torrent? Or what?
It downloads parts from his web server.

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");

Post Reply