Is it possible to log message to cmd.exe in C#/.Net?

后端 未结 5 2102
别跟我提以往
别跟我提以往 2021-01-05 19:19

Is it possible to log message from WinForms app to cmd.exe process started programmatically? I\'ve tried to do all kinds of variations of following code:

pri         


        
5条回答
  •  离开以前
    2021-01-05 19:37

    You have to insert a pause command after printing to the console.

    The process terminates as soon as the command is executing, resulting in the blink you see.

提交回复
热议问题