Mike wrote:
> What i want to do is have my c++ program, run a DOS program and copy a
> script from that DOS program to a file. I simply have no idea, how, or
> if it's plausable, to run DOS within a c++ program. It's a command
> prompt, within a command prompt. Any input would be great.
As far as standard C++ is concerned, the std::system() function from
<cstdlib> seems to be the only way to call another program from within C++.
Maybe, something like
std::system( "my_program.exe > my_file.script" );
works on your platform -- but that is just a wild guess.
If that does not work for you, you may want to resort to the use of
(platform specific) 3rd party libraries, which are, however, off-topic in
this group.
Best
Kai-Uwe Bux
|