Well if you're currently running in a windows environment i.e. MS Windows, Linux, Unix derrivative etc... then the cmd window will be in it's own window. To do what you want to achieve you'll need to boot into DOS.
Ok then, one more thing, i see theres a command for resolution things,
1 2 3 4
HWND console = GetConsoleWindow();
RECT r; //resolution things
GetWindowRect(console, &r);
MoveWindow(console, r.left, r.top, 800, 400, TRUE);
The MoveWindow(console, r.left, r.top, 800, 400, TRUE); "True" part, does it means if user can change the resolution by edge (in cmd state)? if i change it to "False" i can still change it, what those MoveWindow(console, r.left, r.top, 800, 400, TRUE); all means? i see'd it on other post and i used it and idk anything about it, do you have an link/info? thx in advance.