Topic "Email"

Author Message
Firedawg

Guest


Hi
I am new to writing batch files. I am looking to set up email notification if it failed or success for a upload. list below is my batch file.
@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%


The batch file works I just don't know how to setup the email. Please help
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26299
Location: Prague, Czechia
Please read documentation:
https://winscp.net/eng/docs/guide_automation#results

If that does not help, come back.
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License