i have tried my first steps in scripting but i was not successfull.
I used the sample script and changed it a little bit like this:
# 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:email@example.com # Connect open myuser:mypassword@myhost # Change remote directory cd /folder # Force binary mode transfer option transfer binary # Download file to the local directory c:\ get config.h c:\ # Disconnect close # Exit WinSCP exit
To execute it i used to following command:
c:\programme\winscp3\WinSCP3.com /console /script=script.scp
After this a window has opened and closed fast.
A manual connect by winscp is possible.
Whats my mistake? :?
Thanks for help!