# Automatically answer all prompts negatively not to stall # the script on errors option batch on # Disable overwrite confirmations that conflict with the previous option confirm off # Connect using a password # open user:password@example.com # Connect #open sftp://MonLogin:Cai6chnv@MonFtp.com -hostkey="ssh-rsa 1024 42:ce:cd:1f:89:0d:24:48:52:ab:e7:f2:57:03:be:93" open ftp://MonLogin:MonMotDePasse@MonFtp.com # Force binary mode transfer option transfer binary # Interface 1 cd /MonRepertoireSurServeurFTP lcd "C:\Repertoire sur disque local" #Copie des données en local get *.* #Envoie de données sur le serveur put *.* #Effacement des données #rm *.* # Disconnect close # Exit WinSCP exit