@Warfley: Thanks, I will study your code, write you later.
@Soner: Thanks too but what is the difference with my original code?
Like explained, of course this will work for the errors generate by fpc himself, but all other errors from dependencies or libraries will not be redirected and you will see them on console, for Windows and Unix too.
Fre;D