Link to home
Start Free TrialLog in
Avatar of Midhun 123
Midhun 123

asked on

how to handle errors in batch script while ftp ing and send email notification

Hi Experts,

Good Day,,,

According to my work, I need to ftp files from one server to another using batchscript.I am able to do the same.
logs are getting saved into outputlog.txt file which is present in the same server path.

My requirement is ,need to send a mail with attaching outputlog.txt .
If it is successful (means errorlevel=0 ) then subject should be ftp successfully completed.And if it get failed,then subject should be ftp failed.In both the cases, log file should get attached.

Any help regarding this would be highly appreciated.
Thanks in Advance..
ASKER CERTIFIED SOLUTION
Avatar of Bill Prew
Bill Prew

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Midhun 123
Midhun 123

ASKER

Thank You Bill prew for your advise.
I greatly appreciate your time to address this question.
Thank You Bill Prew for your valuable advise
Welcome.


»bp