Results 1 to 3 of 3

Thread: Getting a list of FTP directory files on my form in VB

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2011
    Posts
    8

    Smile Getting a list of FTP directory files on my form in VB

    Hello everyone,

    I am trying to program my application in VB.Net so that when a user goes to my 'FTP Out' page, the page straight away loads with a list of the files that are on my FTP site.

    I know I will have to get a connection going with my FTP site but how do I actually go about getting the list of details to show on my form?

    At the moment, all I can think of is calling 'Methods.Ftp.ListDirectoryDetails'

    All help and advice will be greatly appreciated.

    Thanks,

    Dan

  2. #2
    Frenzied Member MattP's Avatar
    Join Date
    Dec 2008
    Location
    WY
    Posts
    1,227

    Re: Getting a list of FTP directory files on my form in VB


  3. #3

    Thread Starter
    New Member
    Join Date
    Jun 2011
    Posts
    8

    Re: Getting a list of FTP directory files on my form in VB

    Hi MattP,

    Thank you for the link, I have used it in my code and am now getting the following error:

    HttpException was unhandled by user code

    I then see a list of the files in the FTP directory but at the end of the list it says " ' is not a valid virtual path.

    This may be a simple thing but was wondering if you or anybody else could explain this to me at all please? It is pointing to the 'Response.WriteFile(ftpReader.ReadToEnd())' part of my script.

    Thank you in advance for the help.

    Dan

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width