WinSCP put not working in script, but is working in CLI
Hi,
this is my first time trying scripting with WinSCP so pardon me if the question seems stupid.
i'm running the following script
option batch abort
option confirm off
open sftp://sftp:sftp@192.168.0.63/ -hostkey="ssh-rsa 1024 36:02:11:38:17:52:28:02:1e:eb:55:35:db:ed:ba:77"
put c:\test\*.*
exit
and i get a premission denied, error code 3 each time.
however, if i do this manually i works every time
by manually i mean i run winscp.com
then paste: open sftp://sftp:sftp@192.168.0.63/ -hostkey="ssh-rsa 1024 36:02:11:38:17:52:28:02:1e:eb:55:35:db:ed:ba:77"
then paste put c:\test\*.*
i don't think there's a premission issue since i works manually, i searched for quite a while and i'm stumped.
Please help
this is my first time trying scripting with WinSCP so pardon me if the question seems stupid.
i'm running the following script
option batch abort
option confirm off
open sftp://sftp:sftp@192.168.0.63/ -hostkey="ssh-rsa 1024 36:02:11:38:17:52:28:02:1e:eb:55:35:db:ed:ba:77"
put c:\test\*.*
exit
and i get a premission denied, error code 3 each time.
however, if i do this manually i works every time
by manually i mean i run winscp.com
then paste: open sftp://sftp:sftp@192.168.0.63/ -hostkey="ssh-rsa 1024 36:02:11:38:17:52:28:02:1e:eb:55:35:db:ed:ba:77"
then paste put c:\test\*.*
i don't think there's a premission issue since i works manually, i searched for quite a while and i'm stumped.
Please help