Great, it works.
thanks for your fast and comprehensive answer.
Best regards
thanks for your fast and comprehensive answer.
Best regards
Selecting files using a path ending with slash is ambiguous. Remove the slash to select the folder. Append * mask to select all files in the folder.
put -delete C:\QxxxuadientFTP\aims_depot\* -filemask=*.jaf /FromGMC/
put -delete C:\QxxxuadientFTP\aims_depot\*.jaf /FromGMC/
put
, as mput
is just an alias.
-delete
, it delete files and local folder too.
# 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