I'm a novice at best with FTP and need to know how to trap an FTP error.
My code is;
G Orders.xml (REPLACE
DELETE Orders.xml
This code works just fine most of the time.
We're having a situation that an Orders.xml will show up after the Get fails from the file not being there and the DELETE occasionally is deleting an unprocessed file. OOPS!!!
I need to NOT DELETE if the G(et) fails
Here's a failure example;
> G Orders.xml (REPLACE
229 Entering Extended Passive Mode (|||43422|)
550 File not found
Enter an FTP subcommand.
> DELETE Orders.xml
550 File not found
Enter an FTP subcommand.
I'm hoping that an IF can be used to condition the Delete, but if how to do this is out there, it's hidden from GOOGLE!!!!!
Thanks everyone for your time,
Gary
My code is;
G Orders.xml (REPLACE
DELETE Orders.xml
This code works just fine most of the time.
We're having a situation that an Orders.xml will show up after the Get fails from the file not being there and the DELETE occasionally is deleting an unprocessed file. OOPS!!!
I need to NOT DELETE if the G(et) fails
Here's a failure example;
> G Orders.xml (REPLACE
229 Entering Extended Passive Mode (|||43422|)
550 File not found
Enter an FTP subcommand.
> DELETE Orders.xml
550 File not found
Enter an FTP subcommand.
I'm hoping that an IF can be used to condition the Delete, but if how to do this is out there, it's hidden from GOOGLE!!!!!
Thanks everyone for your time,
Gary
Comment