FTPPutFile

Example scripts and tips (replaces Old Scripts & Tips archive)

Moderators: Dorian (MJT support), JRL, Phil Pendlebury

Post Reply
kpassaur
Automation Wizard
Posts: 694
Joined: Wed Jul 07, 2004 1:55 pm

FTPPutFile

Post by kpassaur » Mon Dec 06, 2021 12:44 pm

Is there a way to set FTPPutFile to overwrite a file if it exists with the same name.

I am sending them with a wild card and if the file exists it is skipped. The other option would be to get a file list, check to see if it exists, delete it, check to see if it is deleted and then copy the new file. I would like to avoid this if possible.

User avatar
Dorian (MJT support)
Automation Wizard
Posts: 1024
Joined: Sun Nov 03, 2002 3:19 am
Contact:

Re: FTPPutFile

Post by Dorian (MJT support) » Mon Dec 06, 2021 3:14 pm

I just tested with FTPPutFile (using wildcards) and it overwrote my files. This was what I was expecting. If yours is not doing that then your suggestion is a good one. Maybe the inability to overwrite is to do with the server or a setting on the server?
Yes, we have a Custom Scripting Service. Message me or go here

kpassaur
Automation Wizard
Posts: 694
Joined: Wed Jul 07, 2004 1:55 pm

Re: FTPPutFile

Post by kpassaur » Mon Dec 06, 2021 3:55 pm

Thank you for checking

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts