|
-
Jan 30th, 2002, 06:00 AM
#1
Thread Starter
New Member
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?
-
Jan 30th, 2002, 06:32 AM
#2
Junior Member
Just check ...
that the directory name is the right case mebbe... ?
-
Mar 24th, 2002, 02:16 AM
#3
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|