...Uh-oh, you just destroyed AProgramThatTakesInput.exe by overwriting it with text. :p

Perhaps you meant to say


C:\>SomeProgramThatHasOutput.exe | AProgramThatTakesInput.exe