I'm not clear what you mean - do you want to call DOS (by which I presume you mean MS-DOS) commands from a C++ program, or are you talking about reimplementing the Command Prompt in C++?