Re: Scripting : disabling resume option
Please read documentation:
https://winscp.net/eng/docs/ui_pref_resume#temporary
https://winscp.net/eng/docs/ui_pref_resume#temporary
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.
-resumesupport
switch in commands like put
, get
, etc...
# 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 xxxxxxxx:yyyyyyyy@xxx.xxx.xxx.xxx:xxxx-hostkey="ssh-dss 1024 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx"
# Change remote directory
# cd /tmp/SFTP
# Force binary mode transfer
option transfer binary
# Upload the file to current working directory
put c:\Files\*.*
# Disconnect
close
# Exit WinSCP
exit
* 2009-10-20 08:00:02.206 Error code: 4
* 2009-10-20 08:00:02.206 Error message from server (en): Failure
* 2009-10-20 08:00:02.206 Request code: 18
. 2009-10-20 08:00:02.206 Asking user:
. 2009-10-20 08:00:02.206 Transfer was succesfully finished, but temporary transfer file 'CAMDEF_20091019.csv.filepart' could not be renamed to target file name 'CAMDEF_20091019.csv'. If the problem persists, you may try to turn off transfer resume support. ("General failure (server should provide error description).