Holly_vi
March 13th, 2005, 12:05 PM
I have an application that needs to call an exe file a lot of times during its run.
Both appliactions (the caller, and the one being called) are Win32 console applications.
Now, here is my problem:
The exe file that my application calls write a lot of data to the console.
This data does not interest me, and it only messes with the data I write to the console.
Is there a simple way to prevent the called exe from writing to the console?
I heard something about pipes, but since I know nothing about them, I don't even know if this is the right direction for me.
Important points:
- I can't modify the called exe file.
- The data that the called exe writes to the console has no meaning for me, so I don't care if it goes nowehere, as long as I don't see it.
- I call the exe file a lot of times from my applications, and the whole thing needs to run fast.
Any tip would be appreciated.
Both appliactions (the caller, and the one being called) are Win32 console applications.
Now, here is my problem:
The exe file that my application calls write a lot of data to the console.
This data does not interest me, and it only messes with the data I write to the console.
Is there a simple way to prevent the called exe from writing to the console?
I heard something about pipes, but since I know nothing about them, I don't even know if this is the right direction for me.
Important points:
- I can't modify the called exe file.
- The data that the called exe writes to the console has no meaning for me, so I don't care if it goes nowehere, as long as I don't see it.
- I call the exe file a lot of times from my applications, and the whole thing needs to run fast.
Any tip would be appreciated.