Re: Shell calls without stopping the calling programme

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


Date: Tue, 04 May 2004 16:59:37 -0700

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

The system() call is synchronous, per the standard.

If you wish to have asynchronous behavior, you will either need to change your
command string (you will need to find out the specifics of your command
interpreter on your particular operating system), or use an operating-specific
call.



Relevant Pages


Loading