
Originally Posted by
Destinykity
I doubt this would be something easy to make, with an user interface or something, a nice picture displaying as download status and or what it's downloading.
Very easy, actually.
An outline of the algorithm follows:
Code:
1. Get filelist from server (you can use a fixed HTTP request here, and parse the response as it is recieved).
2. When one line is recieved, determine whether the file exists using FindFirstFile(), and check the size with GetFileSize(). If it matches, goto 4.
3. Initiate the download of this file (once again, hardcoded HTTP request with a variable in the GET line will work fine) and store the result to disk.
4. If there are more lines in the filelist being recieved, goto 1.
5. End.