2 Replies - 7822 Views - Last Post: 10 June 2010 - 08:49 AM Rate Topic: -----

#1 l0oky  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 22
  • Joined: 09-June 10

Download all files from FTP directory

Posted 10 June 2010 - 08:24 AM

i Would like to know the code how can i download all files and folders (only if folders exist ) from this online directory (http://ravageautoupd...nload.ac/Files/) to my start path of Application.
I'm new to visual basic and i know some of basics but i wanted to make Auto Updater for my friend...
so i need this part of programing :)

Cheers ;)

EDIT :

Title is : Download all files from ONLINE folder

sorry again for my english... >.<

This post has been edited by l0oky: 10 June 2010 - 08:51 AM


Is This A Good Question/Topic? 0
  • +

Replies To: Download all files from FTP directory

#2 janne_panne  Icon User is offline

  • WinRT Dev
  • member icon

Reputation: 429
  • View blog
  • Posts: 1,047
  • Joined: 09-June 09

Re: Download all files from FTP directory

Posted 10 June 2010 - 08:43 AM

Just one little problem: That is not FTP directory.

But you can use WebClient class to get that page's source code and parse it to find out the names of the files in that directory. First read about WebClient to download the source and then read about string parsing to get the files, that should get you through the task.
Was This Post Helpful? 0
  • +
  • -

#3 l0oky  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 22
  • Joined: 09-June 10

Re: Download all files from FTP directory

Posted 10 June 2010 - 08:49 AM

View Postjanne_panne, on 10 June 2010 - 07:43 AM, said:

Just one little problem: That is not FTP directory.

But you can use WebClient class to get that page's source code and parse it to find out the names of the files in that directory. First read about WebClient to download the source and then read about string parsing to get the files, that should get you through the task.


Lol, yeah i made my self wrong i wanted to say all files from that online folder... sorry for my english :) :blush:

so all files and folders from http://ravageautoupd...nload.ac/Files/ this site will be downloaded in my Application.StartupPath, get it ?

EDIT :

downloading the file is simple code like :

 
Dim site As String = "http://ravageautoupdate.download.ac"
Dim startpath As String = Application.StartupPath
My.Computer.Network.DownloadFile(site + "\files.txt", startpath + "\files.txt")


but what i want is the code that will automaticly detect files and folders in this ONLINE directory http://ravageautoupd...nload.ac/Files/ and then download all of them in the application start up path directory ...

Basically what i want is copytree from that Online folder to my computer...

i hope i was clear this time .. :helpsmilie:

This post has been edited by l0oky: 10 June 2010 - 09:18 AM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1