> system("foo.exe < params.txt") Alas that hangs just opens a window with foo.exe; params.txt is not passed to it. That's why I thought input might work. Any other ideas. I'm trying to think of a DOS program that requires input to test this.