technically, (if you look at my sample) the udf returns a string that if you split() on chr(10) you will get an array from that (if necessary)

What I would like is a to combine stdout and stderr into the return... or use stderr to set the @error and @serror values

THAT would be perfect.

I would like to be able to pass optionally the environment size into the UDF, as many commands do not need it, but some do... therefore ignore it if not necesary, but pass it if you do.

Once this works, there are many useful Find() functions to be able to parse the output... much easier that the cmd line version... but this is outside the scope of this UDF
_________________________
How to ask questions the smart way <-----------> Before you ask