We are trying to us the WinSCP scripting to copy files from local to FTP server.
It work fine but if add
-delete, it delete files and local folder too.
script is here:
# Automatically abort script on errors option batch abort # Disable overwrite confirmations that conflict with the previous option confirm off # Logging Session #/log=c:\QxxxFTP\logs-to-as.log # Connect to FTP server using a password open ftp://user:password@IPADRESS # Download file mput C:\QxxxuadientFTP\aims_depot\ -filemask=*.jaf /FromGMC # Disconnect close # Exit WinSCP exit