WinSCP not running through Task Scheduler
Below script when run manually on cmd works successfully:
D:\Software\WinSCP-5.9.5-Portable\WinSCP.com /log=D:\WinSCPLog\winscp.log
open sftp://@abc.com -hostkey="ssh-rsa 2048 c2:82:7e:88:3f:ee:2b:3e:d0:04:cf:4f:3f:8c:17:d4"
Username
Password
lcd "BANKINTERFACE"
cd XYZ
put -nopermissions -nopreservetime DDS*.txt
When this script is run through batch file that is scheduled Task Scheduler it is not transferring.
D:\Software\WinSCP-5.9.5-Portable\WinSCP.com /log=D:\WinSCPLog\winscp.log
open sftp://@abc.com -hostkey="ssh-rsa 2048 c2:82:7e:88:3f:ee:2b:3e:d0:04:cf:4f:3f:8c:17:d4"
Username
Password
lcd "BANKINTERFACE"
cd XYZ
put -nopermissions -nopreservetime DDS*.txt
When this script is run through batch file that is scheduled Task Scheduler it is not transferring.