Dear all
In my script I load the .NET assembly library "TagLib#", a library to access e.g. mp3-tags.
If the the importend "Create"-function of this lib fails, it generates two kinds of errors.
It throws exceptions to PS which I can trap without any problems.
And it catches own exceptions and uses Console.WriteLine() to write a detailed error message to the console.
But the return value (.NET Lib.Tag....-object) is always existing and $? is always $true.
Even "start-transcript" can't log the text from Console.WriteLine() output.
How can I determine if the function has failed or not ?
How can I redirect or examine the Console.WriteLine() error messages ?
I've googled for hours and tried everything...
I use PS1.0 under Vista and be a newbie to PS.
TIA
best regards
