I have a batch file that call winscp.exe /console /script=script.txt /hostkey=...... /log=Path log file
The script script.txt is :
# 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 XXXXXX@XXXXX.IT
# Force binary mode transfer
option transfer binary
# Download file to the local directory d:\
cd xxx
cd xxx
put UNC PATH\*.zip (UNC PATH = \\servername\share)
# Disconnect
close
exiT
In log File I have always that message but zip file is trasfered on remote server