You might want to take a look at Daniel Berger's win32/process package
on RAA - http://raa.ruby-lang.org/project/win32-process/

Sean