Note that I wanted to realize the following when calling another exe from exe with the sysytem function of windows
--Do not display the standard output of the exe to be called --I want to use only the return value of the exe to be called
#include <iostream>
#include <process.h>
int main()
{
int result;
//「>Do not display standard output with "nul".
result = system("Test.exe > nul");
printf("-------------------------\n");
printf("result : %d\n", result);
}
Recommended Posts