Results 1 to 3 of 3

Thread: File Download from Subdirectory

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2002
    Posts
    1

    Unhappy File Download from Subdirectory

    I have done all the hard work using the Inet control in vb5 (sp3) to list the files contained in a remote ftp directory and subdirectory.

    I can download files from the root using the following code:

    URL = "ftp.abc.com"
    tfile = "Data.txt"
    RemoteFile = URL & "/" & tfile

    Inet1.Execute Trim$(RemoteFile), "GET"

    The code above works like a charm and I can measure the progress using the Inet state changed event while reading the download into a string.

    but when i try to retrieve the same file from the subdirectory "/NewData" using the following code, it fails....it is more than likely a syntax problem.

    URL = "ftp.abc.com"
    tfile = "Data.txt"
    tDir = "/Data"
    RemoteFile = URL & tDir & "/" & tfile

    Inet1.Execute Trim$(RemoteFile), "GET"

    Please help


    Can anyone help?

  2. #2
    Junior Member
    Join Date
    Nov 2001
    Location
    United Kingdom, DORSET
    Posts
    24

    Lightbulb Just check ...

    that the directory name is the right case mebbe... ?

  3. #3
    rsitogp
    Guest

    Re: File Download from Subdirectory

    Originally posted by A Doc
    The code above works like a charm and I can measure the progress using the Inet state changed event while reading the download into a string.
    May I ask how are you measuring the progress? I've been trying to solve that problem for a while now but to no avail...

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