The content of the error is "mode is not an internal or external command, an executable program, or a batch file."

As a way to do this, we added "c:\windows\system32" to path by manipulating environment variables. It works this way, but I want to make sure that other users don't have to go through this. "SetEnvironmentVariable("path", "c:\windows\system32")" does not resolve the error What should I do?

SetEnvironmentVariable("path", "c:\windows\system32");
system("mode con:cols=150 lines=40");

0 Answers