locked
how would i go about making a down loader RRS feed

  • Question

  • ok what i want to do is make a down loader for my maps that i make in call of duty so in all 

    what i want to do is make a application that will on the left side show the maps available for example 

    map 1 elfenlied

    map 2 garden

    map 3 home

    ect

    when clicked on one of the 3 options it has a download button and a progress bar

    but the thing is i want it to automatically find this directory 

    C:\Users\elfenliedtopfan5\AppData\Local\Activision\CoDWaW\mods

    if anyone could help me with this i would be so grateful been a huge idea but dont have a clue how to start it :( 

    also i want it to be so it can automatically be updated so say i make a new map i put it on a database and it appears in the program so i dont have to release loads of copy's sorry to be a pain i know i ask a lot of questions but if you can help me with this be soooo happy :) 


    Tuesday, October 16, 2012 11:23 PM

All replies

  • Hi,

    regarding a client-server communication, you could use WCF. I would suggest to read some introductions on that. With WCF it is quite easy to define an interface that could be used for it:
    - http://msdn.microsoft.com/en-us/library/dd456779.aspx
    And maybe you want to look at CodeProject, too (I mostly prefer the msdn library but that is of course a personal preference):
    - http://www.codeproject.com/Articles/30374/WCF-Windows-Communication-Foundation-Introduction
    - http://www.codeproject.com/Articles/87510/WCF-by-Example-Introduction
    - ...

    Regarding a file download with progres bar: There are some examples / tutorials / articles on how to do that:
    - http://www.codeproject.com/Articles/17979/Downloading-Files-in-NET-With-All-Information-Prog is a CodeProject article (using VB.Net but was a quick CodeProject hit. I am quite sure that there are c# articles on that, too)
    - http://www.devtoolshed.com/content/c-download-file-progress-bar
    - http://www.dreamincode.net/forums/topic/115491-download-file-asynchronously-with-progressbar/
    - http://msdn.microsoft.com/en-us/library/ms229675.aspx

    So I am quite sure that some of these links will show you, how the download part could be done.

    With kind regards,

    Konrad

    Wednesday, October 17, 2012 12:17 PM
  • ok the download part i get but the wcf lost me totally watch video tuts i dont know how to add a folder then use the wcf client to download it like the link to it because i only worked with the forums applications the server stuff confuses me if i could use that server and add folders to it then add a download button well the download part i think i can do but its linking the server to the application and storing it on server and calling it form the server to download if that makes sense at all but thank you for all the helpful links they have helped me out least i know what i have to work with just dont know how to piece it all together 
    Wednesday, October 17, 2012 2:16 PM
  • When you offer the newest file on a "public" server compare as well file name and file date (last write date) and file size.
    When the file on server is newer ask the user to close his regarding file and start a downlaod. For this it is necessary to use a known path or offer the user to change path for the download.

    The rest can be handeled as copy job.


    Liebe Grüße Stefan | Cheers Stefan I'm using VB 2008 and VB 2010 Express Be a good forum member - mark posts that contain the answers to your questions or those that are helpful. c# in vb Translator: http://www.developerfusion.com/tools/convert/csharp-to-vb/

    Wednesday, October 17, 2012 6:08 PM
  • yeah thats confused me a bit dose anyone have code or example code because this is really lost me sorry to be a pain but really want to achieve this 
    Friday, October 19, 2012 10:57 AM
  •  ok to make things a little easier here is a image of what i want to do 

    basically get the nazi_zombie_elfenlied to appear in form this ftp cliant so connect my program to this so when i release it if i add anymore files to it will come out as a update :) on my program i make zombie maps for world at war so i want it to show updates to my program :) hope this makes a little more seance now that's if you can even add files to a ftp client to a vb project and download them form there 

    Saturday, October 20, 2012 12:27 AM
  • but the thing is i want it to automatically find this directory 

    C:\Users\elfenliedtopfan5\AppData\Local\Activision\CoDWaW\mods

    Do either of these work for you?

            Dim Path As String = Environ("AppData") & "\Activision\CoDWaW\mods"
            Dim Path2 As String = Replace(Environ("AppData") & "\Activision\CoDWaW\mods", "\Roaming\", "\Local\")

    What do you want to be able to automatically update for later releases?


    If you want something you've never had, you need to do something you've never done. --------------------------------------------------------- Everyone(not just the thread starter) should take the time to mark helpful posts, propose answers, and mark answers to questions.

    Monday, October 22, 2012 11:28 AM
    Moderator
  • i mean i want to download that folder form the ftp in pic and place it in waw activation with the code you gave me there thank you :) 

    but auto update what i mean by that if i add another folder like nazi_zombies_garden it will pop up in program as a update and you can download that :) if thats possible something like this really 

    but i want to that auto updates comes up with updates and its run on a server i want to do something just like this but little diffent layout 

    Monday, October 22, 2012 2:24 PM