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?