Re: Email
Please read documentation:
https://winscp.net/eng/docs/script_email
If that does not help, come back.
https://winscp.net/eng/docs/script_email
If that does not help, come back.
@echo off
"C:\Program Files (x86)\WinSCP\WinSCP.com" ^
/log="C:\FTPLogs\VCAL.log" /ini=nul ^
/command ^
"open sftp://******:******/ -hostkey=""*********""" ^
"synchronize remote E:\VCAL /Diagnostics_******/VCAL" ^
"exit"
set WINSCP_RESULT=%ERRORLEVEL%
if %WINSCP_RESULT% equ 0 (
echo Success
) else (
echo Error
)
exit/b %WINSCP_RESULT%