text: how do you make dos open a seperate file like ms paint for example
  how do you make dos open a seperate file like ms paint for example
  The simplest way without knowing what exec-type functions your compiler supports would be
  Code:system ( "mspaint" );
  My best code is written with the delete key.
  what would be the whole program code for that?
  Code:... #include <cstdlib> ... int main() { ... system("[enter system call
  That would be
  Note the escaping(sp?) of the backslash. I think a forward slash will work too, but I'm not sure.Note the escaping(sp?) of the backslash. I think a forward slash will work too, but I'm not sure.Code:<cstdlib> using namespace std; int main() { system("C:\\map\\map\\program.exe"); return 0; }
  If you are in pure DOS or a DOS session (NOT available in XP) then you can call DOS int 21h and open a file via DOS or you can execute a dos interrupt from C which will automatically call DOS for you.
  DOS has specific functions for opening child processes although they are somehwhat limited since it was never designed to be a multi-tasking OS.