Programmatic FTP using the INET control
Posted on 2001-06-08
I need to capture configuration (.cfg) files from a remote server and copy them all into a folder or specified directory on my pc. This must be done without API but i can use the library references. The connection, copying, and transfer of files must be done programatically, that is, with no user interface whatsoever. I have tried using the inet control but found that the "GET" command must have specified files written to it instead of just being able to call all the files with a wildcard (*.cfg). I guess i need a loop of some sort to grab all of the files off the ftp server and copy them at one instance onto my PC. If anyone has any suggestions and/or comments I would greatly appreciate it. Thanx.