I'm finding it difficult to find information on retrieving directory information from a known FTP site. Could someone please assist me in accomplishing the following while using VB6.0...
Goal: Create a text file on my C:\ drive that lists the file names of files located in a particular FTP site directory.
Idea: For example, using DOS, I can type in "dir >C:\temp\DirList.txt". This results in me getting a text file called DirList.txt that lists the directory files on my computer. I want to do the same thing but this time, the directory I want information from is located on a FTP site and I don't know how to get the text file created! Using the FTP command "ls" will give me the directory contents for example, but how to get this in a text file?
Is there a similar function using FTP commands that will result with a text file like in DOS?
Ultimately, my goal is to update a server with information that is provided in the name of the files in the FTP directory. Files are generated remotely and uploaded to our FTP site on a daily basis. The name of the file is structured to give me the data I want to store in the DB. My thoughts are to create a text file, listing the contents of the directory. With that, I can then update my database.
Any thoughts or comments as to how I might better achieve my goal would greatly be appreciated.
Thanks in advance,
dg
Goal: Create a text file on my C:\ drive that lists the file names of files located in a particular FTP site directory.
Idea: For example, using DOS, I can type in "dir >C:\temp\DirList.txt". This results in me getting a text file called DirList.txt that lists the directory files on my computer. I want to do the same thing but this time, the directory I want information from is located on a FTP site and I don't know how to get the text file created! Using the FTP command "ls" will give me the directory contents for example, but how to get this in a text file?
Is there a similar function using FTP commands that will result with a text file like in DOS?
Ultimately, my goal is to update a server with information that is provided in the name of the files in the FTP directory. Files are generated remotely and uploaded to our FTP site on a daily basis. The name of the file is structured to give me the data I want to store in the DB. My thoughts are to create a text file, listing the contents of the directory. With that, I can then update my database.
Any thoughts or comments as to how I might better achieve my goal would greatly be appreciated.
Thanks in advance,
dg