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..
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank You Bill Prew for your valuable advise
Welcome.
»bp
»bp
ASKER
I greatly appreciate your time to address this question.