Here is my script that uses the log file:

LOG C:\LOGS\WSFTP.LOG
ONERROR GOTO END
USER ****
PASS ****
SSL 1
CONNECT ftp.somewhere.com 21
LCD C:\Download
CD \Remote\Site
MGET "*.*"
MDELETE *.*
LABEL END
CLOSE
QUIT

I'm not sure if it will return what you need.

Jim



-----Original Message-----
From: Nelson, Dale [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 22, 2001 8:08 AM
To: '[EMAIL PROTECTED]'
Subject: RE: [WS_FTP Forum] WSFTP Scripting


Sorry, I had a typo in the first message. here it is again.
__________________________________________________________________________

Hello everybody, I have a script that will download files from a folder.
Currently I get 2 different results when I execute my script:

1. everything worked. files transferred
2. something did not work, either the connection failed, transfer failed, or
there are no files to transfer (empty folder).

Is there a way to determine why the FTP has failed, is there a way to
capture the return code of the
FTP "dir" command or the "mget" command that will tell me if there are no
files to transfer.

I am using v 6.7

Thanks for any help or suggestions

Dale A. Nelson
mailto:[EMAIL PROTECTED]


Please visit http://www.ipswitch.com/support/mailing-lists.html to be
removed from this list.


Please visit http://www.ipswitch.com/support/mailing-lists.html to be removed from 
this list.

Reply via email to