script
Set at the Windows Path and Environment the location of the WinSCP.com in order to be run from any folder.
proxy:403 forbidden.
"C:\Program Files (x86)\WinSCP\WinSCP.com" /log="D:\XXX\Setup - WinSCP\Auto\WinSCP.log" /ini=nul /script="D:\XXX\SyncToRemoteXXXScript.txt"
Proxy error: 403 Forbidden
option batch abort
option confirm off
open sftp://xx_xx@xx.co.net.xx/ -hostkey="ssh-rsa 2048 OZmbfQXMfIAAkZ/08lzjZTIbFOhnEz7+UY3lhJHpst8=" -privatekey="D:\XXX\Key File Shared\XXXprivate key.ppk" -passphrase="XXX1234" -rawsettings ProxyMethod=3 ProxyHost="10.00.00.00" ProxyUsername="SVC_XXX" ProxyPassword="FUg7sT5kVX5Om9"
synchronize remote "D:\XXX\DATA" /XX_XXXX_SFTP
exit
C:\Program Files (x86)\WinSCP>winscp.com /script="D:\XXX\SyncToRemoteXXXScript.txt"
winscp.com /script="D:\XXX\SyncToRemoteXXXScript.txt"
pause