How do I redirect output to a file with CreateProcess?

前端 未结 5 2063
不思量自难忘°
不思量自难忘° 2020-11-27 19:52

I tried using CreateProcess to run a simple command like hg > test.txt. I tried running the string as a whole (as opposed to separating it into an applicatio

5条回答
  •  孤独总比滥情好
    2020-11-27 20:10

    Microsoft has an example how to redirect the standard output: http://msdn.microsoft.com/en-us/library/ms682499(VS.85).aspx.

提交回复
热议问题