Overwrite
Hello,
I have my WinSCP to transfer files from 1 SFTP site to another every morning, but for some reason i cant get it to overwrite my local files on download or the second SFTP site on upload. am i missing something?
Code inclosed below: (File Names and Servers changed to generics)
[/code]
I have my WinSCP to transfer files from 1 SFTP site to another every morning, but for some reason i cant get it to overwrite my local files on download or the second SFTP site on upload. am i missing something?
Code inclosed below: (File Names and Servers changed to generics)
# Automatically abort script on errors option batch abort # Disable overwrite confirmations that conflict with the previous option confirm off open Server1 # Force binary mode transfer option transfer binary # Download file to the local directory c:\ get file1.txt c:\file\ get file2.txt c:\file\ get file3.txt c:\file\ get file4.txt c:\file\ get file5.txt c:\file\ get file6.txt c:\file\ get file7.txt c:\file\ get file8.txt c:\file\ get file9.txt c:\file\ # Disconnect close # Connect to a different server open server2 # Upload the file to current working directory put c:\file\file1.txt put c:\file\file2.txt put c:\file\file3.txt put c:\file\file4.txt put c:\file\file5.txt put c:\file\file6.txt put c:\file\file7.txt put c:\file\file8.txt put c:\file\file9.txt # Disconnect close # Exit WinSCP exit