我做了一个EXE,printHello.exe 作用就是输出hello,想通过ShellExecute把输出的hello重定向到my.txt 中,下面这么用没有得到我要的结果,大家知道为什么吗?
ShellExecute(NULL,"open","printHello.exe"," >my.txt",NULL,SW_SHOWNORMAL);