Trying to automate get -delete
hey guys, so I've created bunn_get.txt in C:\Program Files (x86)\WinSCP and it goes like this:
open sftp://<key>@ftp.axiscloudplatform.com/ -hostkey="ssh-rsa 2048 <another key>="
cd /out
lcd C:\GD\Emails\Bunnings
get -delete *.xml
#also tried get -delete *.xml C:\GD\Emails\Bunnings
exit
# Execute the script using a command like:
# "C:\Program Files (x86)\WinSCP\WinSCP.exe" /log="C:\GD\Emails\Bunnings\archive\WinSCP.log" /ini=nul /script="C:\bunn_get.txt"
And I've created bunn_edi.bat in c:\
"C:\Program Files (x86)\WinSCP\WinSCP.exe" /log="C:\GD\Emails\Bunnings\archive\WinSCP.log" /ini=nul /script="C:\bunnings_get.txt
Nothing's happening. When I try to open the terminal window in WINSCP, I get the error:
Authentication log (see session log for details):
Using username "<username>".
Authentication failed.
Any ideas?
My Regards
Roman
Candoo Business Systems
open sftp://<key>@ftp.axiscloudplatform.com/ -hostkey="ssh-rsa 2048 <another key>="
cd /out
lcd C:\GD\Emails\Bunnings
get -delete *.xml
#also tried get -delete *.xml C:\GD\Emails\Bunnings
exit
# Execute the script using a command like:
# "C:\Program Files (x86)\WinSCP\WinSCP.exe" /log="C:\GD\Emails\Bunnings\archive\WinSCP.log" /ini=nul /script="C:\bunn_get.txt"
And I've created bunn_edi.bat in c:\
"C:\Program Files (x86)\WinSCP\WinSCP.exe" /log="C:\GD\Emails\Bunnings\archive\WinSCP.log" /ini=nul /script="C:\bunnings_get.txt
Nothing's happening. When I try to open the terminal window in WINSCP, I get the error:
Authentication log (see session log for details):
Using username "<username>".
Authentication failed.
Any ideas?
My Regards
Roman
Candoo Business Systems