Achieve Linux/dev/null with Windows system function

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

Achieve Linux/dev/null with Windows system function
Python starting with Windows 7
Python with VS Code (Windows 10)
Implement login function with django-allauth
Run python with PyCharm (Windows)
Approximate sin function with TensorFlow
venv environment with windows powershell
Use Windows 10 fonts with WSL
Achieve "Bals" with Amazon Echo
Presentation Support System with Python3
Zura with softmax function implemented
Time synchronization (Windows) with Python
Blogging with Pelican on Windows
Find the transfer function of one degree of freedom system with PythonControl.
Japanese file enumeration with Python2 system on Windows (5C problem countermeasure)