Are you looking for
? [NB there's wide char versions of those also as
wsystem() and _wpopen()
just runs a "dir" command without having to open a console.
does the same thing, but opens a pipe so that you can read or write to the command e.g.
FILE *cmdPipe = _popen("dir", "r");
while(fgets(buff, sizeof buff, cmdPipe) != NULL)
std::cout << buff;