Hi,
TAsyncProcess from the LCL has a property NumBytesAvailable. Attached patch adds it to TProcess in the FCL.
NumBytesAvailable checks how many bytes are available in TProcess.Output, so you can decide not to read from it if there are no bytes available.
Maybe you want a different name for the property or different implementation details. If so, let it know, so I can adapt the patch.
Vincent
