Re: Shell calls without stopping the calling programme

From: Julie (julie_at_nospam.com)
Date: 05/05/04


Date: Tue, 04 May 2004 16:56:13 -0700

red floyd wrote:
>
> Pekka Jarvela wrote:
> > If I put in my C++ (Visual Studio) a shell call
> >
> > system("notepad file.txt");
> >
> > which opens a Notepad window with file.txt, there is a problem that
> > the programme stops as long as Notepad window is open. Is there a way
> > to make shell calls so that they don't stop the actual programme?
> >
> > Pekka
>
> try fork() and exec(). Oh, that doesn't work on your Windows system?
> Sorry, your post is OT.

Sorry Pekka, but the original post is _on_topic_, your response however is
_off_topic_.

system is part of the C++ library, fork and exec are not.



Relevant Pages