Searching for host in script, but works in GUI

Advertisement

fjbass78
Joined:
Posts:
5

Searching for host in script, but works in GUI

Trying to connect to an SFTP site using a bat file that calls a script.
I'm able to connect via the WinSCP GUI but when launching the bat file, a DOS screen tells me "searching for host" then closes with out connecting.
Here's the script file I'm using: What do I have wrong?
option batch abort
option confirm off
 
open sftp://Account:password@FTX-SERVSH.bnymellon.com/ -hostkey="ssh-rsa-9e-c2-dd-6d-86-a6-30-56-9d-ea-99-de-ff-c3-5f-2d"
 
synchronize remote \\amna1wgraapx01\apx$\rep\jpmDailyReports\ /advent

Reply with quote

Advertisement

fjbass78
Joined:
Posts:
5

here are the logs
  • WinSCP.log (3.14 KB, Private file)
Description: log from the script
  • mellon winscp log.txt (4.58 KB, Private file)
Description: log from winscp gui

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum