FTP batch file errors out when it can't overwrite

Advertisement

shotgunman006
Guest

FTP batch file errors out when it can't overwrite

Hi,

I have a vendor FTP site that doesn't give us the overwrite permissions which has caused various errors since I can't upload in parts and had to turn that off and other stuff.

Normally I would copy files to an archive then upload to FTP site with the -delete after transfer. That way if there is a failure to connect, it will upload next time.

So on this one, I have multiple files that will upload. If it finds a file already exists, I want it to move on to the next file instead giving an error that it can't overwrite remote file and then stop the batch file. How do I get it to move on instead of stopping?

Right now, it connects to the SFTP site then:
LCD D:\File_folder
CD /Inventory_files
# the asterisk is to pick up files with different dates
PUT -delete -resumesupport=off file_Name_*_date
exit
The log file shows it cannot overwrite b/c permission denied.

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum