I have a .bat file that runs a ftp script, grabbing files from the server and copying them to my machine. Works great. 

[I now want this .bat file to report if any of these errors occured.](http://blog.crowe.co.nz/blog/archive/2005/10/19/293.aspx) 

If you could point me in the right direction to the general idea of how to do this, that would be great. 

Thanks.