There are a few potential pitfalls here.

First, the O/S. You say you have this working at the command line, so that is not a problem, but be aware that Win95 has a completely brain-dead implementation of pipe, where the output from some command is spooled to a temporary file before being passed to the next.

[edit] Deleted the overly complex sample code, as it simply works for me [/edit]

[ 25. February 2003, 17:09: Message edited by: Richard H. ]