How do I execute a DOS command from within my program?
How do I execute a DOS command from within my program?
What exactly do you mean "execute a DOS command" ?
Are you refering to accessing DOS features while in runtime?
Whatever you pass to the system() function in <cstdlib> will be run as if you'd typed it into your command prompt. This assumes you mean the windows command prompt and not actually DOS.
Thanks Daved, that's the function I was looking for. I was afraid to call cmd.exe DOS, because it's not, it's more like an emulator.