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
The batch file works I just don't know how to setup the email. Please help
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