The only way I know to do something like that is to write your script and then repeat the command text min the output string with the result.


Code:

MD "c:\docs"
Writelog('MD "c:\docs" : Result - ' + @error + ' ' + @serror)



You can find the WriteLog function in the UDF library.
_________________________
Home page: http://www.kixhelp.com/hb/