Scripting file download, getting download results

Core FTP client questions and answers
Post Reply
dbWizard
Posts: 3
Joined: Fri May 20, 2016 5:52 pm

Scripting file download, getting download results

Post by dbWizard »

I've inherited some code for downloading from an unsecure FTP site, which outputs results received from the server to an output file. The code uses the basic Microsoft FTP client.

The source of the data has decided they want to migrate to "Explicit FTP" and has setup a test site for me to use to download files. I've developed a script which performs the download operation:

strRun = """" & ftpAppPath & """" & "-O -site savedProfileName -d " & ftpRemoteDir & ftpRemoteFile & "-p " & ftpLocalDir
shell.Run strRun, 0, TRUE

But now I want to duplicate the original code which records messages received from the FTP site to an output file and am uncertain of the syntax for doing that.

Additionally, the original code I received reads the data from the output file and tests for a variety of codes received from the server during the download. Are the codes used by CoreFTP the same as those used by the Microsoft FTP application? If so, where would I get a list of those codes and their meanings.

Thanks for your help
dbWizard
Posts: 3
Joined: Fri May 20, 2016 5:52 pm

Log All Activity

Post by dbWizard »

In Core FTP LE, there is an option for "Log all activity" which allows the user to set the output location for the connection and transfer process.

Is there a way to change this value via a command line prompt?
If not, is there a Settings file which could be edited programmatically to change this value at run-time?
cp
Posts: 124
Joined: Sun Sep 11, 2011 5:18 am

Post by cp »

-log <logfile>

see help file topic "command line"
Post Reply