I have created two simple .exe files. One of them takes a filename parameter at runtime and reads the contents of the file to the console. The other waits on its console’s input and then reads it; for now it just has to print out to the console, but eventually I’ll have to redirect the read in text to a new txt file. My question is, how can I redirect the output of the first exe to the 2nd exe’s console where it can be read in?
Thanks in advance for any help you can provide! 🙂
-Chris
You could probably do something with the command line using the pipe redirect operator:
The pipe operator redirects the console output from the first app to the standard input of the second app. You can find more info here (the link is for XP but the rules apply to Windows Vista and Windows 7 as well).