Read from command prompt
-
I want toread the text, result of a command at the command prompt. Is there a way other than redirecting it to a text file. My command shows some timely status on the window. Thank you.
Saadhinchaali
-
I want toread the text, result of a command at the command prompt. Is there a way other than redirecting it to a text file. My command shows some timely status on the window. Thank you.
Saadhinchaali
use
std::cin
class to read from the input stream[VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]
-
use
std::cin
class to read from the input stream[VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]
toxcct wrote:
std::cin
Thank you but I dont think it will help. Ok i will explain the total case. I have a batch file which contains a call to an exe file called "checkstat.exe". By executing this exe through that batch file, a console window comes, and the result of 10 lines is shown on the console at first. Late after 3-4 seconds again 4 lines are shown on the console. With some intervals of 3-4 seconds some lines are shown like that until we press ctrl+c. I am running the batch file from my application using
system("");
I want all the lines which are shown on the console until the ctrl+c into some buffer in my application. Thank you
Saadhinchaali
-
toxcct wrote:
std::cin
Thank you but I dont think it will help. Ok i will explain the total case. I have a batch file which contains a call to an exe file called "checkstat.exe". By executing this exe through that batch file, a console window comes, and the result of 10 lines is shown on the console at first. Late after 3-4 seconds again 4 lines are shown on the console. With some intervals of 3-4 seconds some lines are shown like that until we press ctrl+c. I am running the batch file from my application using
system("");
I want all the lines which are shown on the console until the ctrl+c into some buffer in my application. Thank you
Saadhinchaali
[How to spawn console processes with redirected standard handles^] may be useful.
-
I want toread the text, result of a command at the command prompt. Is there a way other than redirecting it to a text file. My command shows some timely status on the window. Thank you.
Saadhinchaali
See here.
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
I want toread the text, result of a command at the command prompt. Is there a way other than redirecting it to a text file. My command shows some timely status on the window. Thank you.
Saadhinchaali