I am already logging the info I need to a log file and I'm using redirectoutput for that. Its probably one of my late night ventures with no coffee.

This is off topic but does anyone know of a UDF that builds and array or writes to a text file error levels or return codes. I realise redirectoutput was suggested but I am looking for a more selective output.
_________________________
WonderBoy Constantly learning everyday, how much I dont know :-)