How do I pass input into the command line using code. For example, I want to start command line, run the executable and the code will have commands like “start” inside it, and as the file runs those commands will be passed to the command line.
Share
Use the system() function under windows, i.e. for example you want to pass a command to the command line like pause, use
and so on..
It is same as opening cmd and writing pause there and executing it!!