Great, thank you!
i have tried to login and it works successfully.
I "following" this script:
# Connect
open sftp://user:password@example.com/ -hostkey="ssh-rsa 2048 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx"
# Change remote directory
cd /home/user
# Force binary mode transfer
option transfer binary
# Download file to the local directory d:\
get examplefile.txt d:\
# Disconnect
close
But i have 2 questions...
First: If i start winscp.exe with the param /console, the winSCP Console opens in a new window. How can i put code in this window automatically?
Secondly: How can i get a full folder from the host, not only a file? With "get foldername d:\" for example?