4
1
I am trying to automate some file transfers using WinSCP scripting. This is what I have.
option echo off
option batch on
option confirm off
open abcde:abcde@sftp.xxxyyyzzz.net
lcd "t:\"
put -nopermissions -nopreservetime "test.txt" test.txt
exit
I can actually get to the command line and run the open
, lcd
, and put
commands without any issue. When I use the script, I receive this error:
Opening session using command-line parameter in scripting is deprecated. Use 'open' command instead.
Searching for host...
Host "=" does not exist.
I got through the connection hurdle by putting the connection command in the batch file pulling the script.
Winscp.com abcde:abcde@sftp.xxyyzz.net
How do I call the script to run the rest of the tasks?
/script= ... you saved me dude – Mickey Perlstein – 2017-08-23T10:35:30.327