With an API? It might be possible, but I do not know of any way. The Process
object is not the greatest methodology, necessarily, but it does allow you to
use standard in and standard out. Admitedly, it is effectively the same as
calling the command line from a command prompt (except programatically).
We use it regularly and have found the only time it causes us problems is
when the process finishes in a fraction of a second and does not leave time
to query standard out. In those situations, if the executable allows, we
write to a log and parse it. Yes, it is not an extremely sexy methodology,
but it works fairly easy, is easily maintainable and the learning curve is
not that high. The same problem could rear its ugly head through API calls,
however.
---
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
***************************
Think Outside the Box!
***************************