-
easy answer, just saw another post like this...all u need to do is add an input statement at the end so you can keep the dos window open until you press any key
#include <iostream.h>
int main()
{
int x;
cout << "Put your commands in between the int x statement and cin x statement." << endl;
cin >> x;
return 0;
}
-
okay do this :
C:\windows\system32\command.com
Then type your DOS commands, and it'll work.
( whatever your windows directory is called )
This same thing happened to me, i dont know why, that when i type command, it comes and goes, when i type the path, it stays, the DOS prompt.
Probably because it executes the command.com in the C:\