# Automatically abort script on errors ## option batch abort # Disable overwrite confirmations that conflict with the previous ## option confirm off # Connect # ssh-rsa 2048 6e:2d:96:c3:df:0a:ed:4a:7e:bd:b3:82:e9:4e:9d:22 # The following establishes a connection using an ssh-rsa key # "hostname" is specific to the FTP server where the connection is being made. ## open username:password@hostname.com -hostkey="ssh-rsa 2048 6e:2d:96:c3:df:0a:ed:4a:7e:bd:b3:82:e9:4e:9d:22" # # The following establishes a basic SFTP connection ## open sftp://username:password@hostname.com/ # # List remote folder ## ls # # Change the current working remote folder ## cd /home/user # # Force binary mode transfer ## option transfer binary # # Download file to a local folder # This example also uses the "-delete" option to delete the file on the remote server once is has been downloaded. # The option does not necessarily need to be used. # The target folder may need to be changed ## get -delete *.csv C:\ProgramData\Bizweaver\FTP_In\ # # Upload the file to current working remote folder ## put examplefile.txt # # Disconnect from the remote server ## close # Exit WinSCP ## exit