Hot to get ouput of console application executed by my program?
-
Hello. I'm executing a console application from my program, and is there a way to get information about what was an output of this program? I know that porgram wich I'm executing using fprintf(stdout,...) to make an output to console. Or how can I redirect its ouput to the file? To lunch the program I'm using CreateProcess As it's described in A newbie's elementary guide to spawning processes on this site (URL : http://www.codeproject.com/useritems/newbiespawn.asp) Thanks. Alexander
-
Hello. I'm executing a console application from my program, and is there a way to get information about what was an output of this program? I know that porgram wich I'm executing using fprintf(stdout,...) to make an output to console. Or how can I redirect its ouput to the file? To lunch the program I'm using CreateProcess As it's described in A newbie's elementary guide to spawning processes on this site (URL : http://www.codeproject.com/useritems/newbiespawn.asp) Thanks. Alexander
This article may help you... http://www.codeproject.com/atl/redirect.asp
-
Hello. I'm executing a console application from my program, and is there a way to get information about what was an output of this program? I know that porgram wich I'm executing using fprintf(stdout,...) to make an output to console. Or how can I redirect its ouput to the file? To lunch the program I'm using CreateProcess As it's described in A newbie's elementary guide to spawning processes on this site (URL : http://www.codeproject.com/useritems/newbiespawn.asp) Thanks. Alexander
Check out this thread. It'll do what you are looking for, but it's in VB. It's not much to port it though. Jeremy L. Falcon "The One Who Said, 'The One Who Said...'" Homepage : Sonork = 100.16311
01000010011011110110001000100000011101110110000101110011
00100000011010000110010101110010011001010010111000000000 -
This article may help you... http://www.codeproject.com/atl/redirect.asp
-
Check out this thread. It'll do what you are looking for, but it's in VB. It's not much to port it though. Jeremy L. Falcon "The One Who Said, 'The One Who Said...'" Homepage : Sonork = 100.16311
01000010011011110110001000100000011101110110000101110011
00100000011010000110010101110010011001010010111000000000 -
Hello. I'm executing a console application from my program, and is there a way to get information about what was an output of this program? I know that porgram wich I'm executing using fprintf(stdout,...) to make an output to console. Or how can I redirect its ouput to the file? To lunch the program I'm using CreateProcess As it's described in A newbie's elementary guide to spawning processes on this site (URL : http://www.codeproject.com/useritems/newbiespawn.asp) Thanks. Alexander
Go to this site and download the pipe demo. I got this yesterday and it is great!:) It will get the output of any console command. http://sloat.bradsoft.net/c.php Aoife