Hi
Is there any way to write from the same program in many command prompts ? More specifically I use win XP and MS Visual C++ v6. All we know that with a simple printf or cout we can write to the command prompt of our application. But if we want to have two command prompts running in the same application how can we redirect the print or cout output to write in the first or second command prompt ? I know the existence of system(“cmd”); function ( and also I know that is not a safe command but my application is only for me and not commercial ) . This function it only opens new commands prompts without giving the ability to write into them ? Is there any solution ? Also if there is an answer for the previous questions , how can I pass and execute some commands ( dir ,exit ) in that command prompts ?
Thanks