Indeed
Thanks
Patryk
Thanks
Patryk
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.
^
after the lines with synchronize
commands.
@echo off
"C:\Program Files (x86)\WinSCP\WinSCP.com" ^
/log="C:\xampp\htdocs\WinSCP.log" /ini=nul ^
/command ^
"open sftp://xxx@xxx/ -privatekey=C:\Users\xxx\.ssh\id_rsa.ppk -hostkey=""ssh-rsa 2048 xxx""" ^
"synchronize remote C:\xampp\htdocs\pre-prod-git\test\ /home/xxx/dev/test/"
"synchronize remote C:\xampp\htdocs\pre-prod-git\xxx\ /home/xxx/dev/xxx/"
"put C:\xampp\htdocs\pre-prod-git\test.txt /home/xxx/dev/wxxx/" ^
"put C:\xampp\htdocs\pre-prod-git\test2.txt /home/xxx/dev/xxx/" ^
"exit"
set WINSCP_RESULT=%ERRORLEVEL%
if %WINSCP_RESULT% equ 0 (
echo Success
) else (
echo Error
)