how to execute batch file from C/C++ w/o console window?
I'm executing batch file from a C++ program by system("star开发者_运维技巧t /B mybatch.bat") call, where /B is supposed to run batch file w/o console window. But it's still visible.
Edit: I resolved the issue by ShellExecute() as was proposed in comments
Why don't you use CreateProcess instead ?
On Windows, if you don't use Windows Runtime, you can try _popen or _wpopen: MSDN.
I used it mainly because _popen creates a pipe so I can easily read output as well.
加载中,请稍侯......
精彩评论