WinSCP executing script from command line
Hi. I am trying to create a script to login and get a file using the command line tool. I don't think I am doing it right and what I see on WinSCP help is not helping much. Can someone paste a couple of lines of code to show me how this is done? No matter how I write the script, it's always asking me for username & password.
here's the last script:
option batch on
option confirm off
open user:password@express.com
option transfer binary
get testfile1.txt c:\Temp\
close
and the output:
batch on
confirm off
Initialisation...
Searching for host...
Connecting to host...
Authenticating...
Using username "user".
Authenticating with pre-entered password.
Access denied.
Authentication failed.
Authentication log (see session log for details):
Using username "user".
Authenticating with pre-entered password.
Access denied.
Unable to authenticate
transfer binary
No session.
No session.
any ides?
Thanks for your help
(if I posted this twice, my apologies)
here's the last script:
option batch on
option confirm off
open user:password@express.com
option transfer binary
get testfile1.txt c:\Temp\
close
and the output:
batch on
confirm off
Initialisation...
Searching for host...
Connecting to host...
Authenticating...
Using username "user".
Authenticating with pre-entered password.
Access denied.
Authentication failed.
Authentication log (see session log for details):
Using username "user".
Authenticating with pre-entered password.
Access denied.
Unable to authenticate
transfer binary
No session.
No session.
any ides?
Thanks for your help
(if I posted this twice, my apologies)