Is there a way to get the output of a program using the CreateProcess API (or any other API call) ? Example, I want to pull the output of 'copy /?' right into the application and right now I have to do copy /? >C:\test.txt to save it to a .txt file and then read .txt file into my VB application. Is there a way around this ?

Thank you in advance for time.


Scott