Help with put .bat
@echo off "C:\Program Files (x86)\WinSCP\WinSCP.com" ^ /log="C:\WinSCP.log" /ini=nul ^ /command ^ "open sftp://sftpsite.com/ -hostkey=""ssh-rsa 1029 U7gTHqAEWWcc9s4RaafFus7Ijsdvqbd/3IS8Juih3ys="" -rawsettings FSProtocol=2" ^ "lcd c:\Folderfiles" /ini=nul ^ "cd /" ^ "put file1.csv" ^ "put file2.csv" ^ "put file3.csv" ^ "put file4.csv" ^ "exit" ^ set WINSCP_RESULT=%ERRORLEVEL% if %WINSCP_RESULT% equ 0 ( echo Success ) else ( echo Error ) exit /b %WINSCP_RESULT%