Re: Shell calls without stopping the calling programme
From: Siemel Naran (SiemelNaran_at_REMOVE.att.net)
Date: 05/04/04
- Next message: Quandon: "Re: arrays of objects"
- Previous message: Siemel Naran: "Re: const_cast question"
- In reply to: Pekka Jarvela: "Shell calls without stopping the calling programme"
- Next in thread: Julie: "Re: Shell calls without stopping the calling programme"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 04 May 2004 17:02:35 GMT
"Pekka Jarvela" <pekkajarvela@email.com> wrote in message
> 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?
This is the limit of standard C++. The behavior of std::system is platform
dependent.
You can try: the spawn and exec functions in process.h, and othe other
variations people in this thread posted. If you want to know more, write to
a Windows or DOS or UNIX newsgroup.
- Next message: Quandon: "Re: arrays of objects"
- Previous message: Siemel Naran: "Re: const_cast question"
- In reply to: Pekka Jarvela: "Shell calls without stopping the calling programme"
- Next in thread: Julie: "Re: Shell calls without stopping the calling programme"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
Loading