O C++ permite executar uma linha de comando usando a função SYSTEM que está na biblioteca padrão de C (stdlib.h) e de C++ (cstdlib).
#include "stdafx.h" #include <stdlib.h> int _tmain(int argc, _TCHAR* argv[]) { system("Color 17"); system("dir c:"); system("pause"); return 0; }