Re: Shell calls without stopping the calling programme
From: Julie (julie_at_nospam.com)
Date: 05/05/04
- Next message: Julie: "Re: Visual C++ 7.1 INTERNAL COMPILER ERROR"
- Previous message: Alf P. Steinbach: "Visual C++ 7.1 INTERNAL COMPILER ERROR -- crossposted clc++ and microsoft.public.vstudio.general"
- In reply to: Pekka Jarvela: "Shell calls without stopping the calling programme"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Next message: Julie: "Re: Visual C++ 7.1 INTERNAL COMPILER ERROR"
- Previous message: Alf P. Steinbach: "Visual C++ 7.1 INTERNAL COMPILER ERROR -- crossposted clc++ and microsoft.public.vstudio.general"
- In reply to: Pekka Jarvela: "Shell calls without stopping the calling programme"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
Loading