From: elf AT netcom DOT com (Marc Singer) Message-Id: <199611131840.KAA29006@netcom4.netcom.com> Subject: Re: system(...) , spawnl(...) To: P DOT Koshevoy AT m DOT cc DOT utah DOT edu (Paul Koshevoy) Date: Wed, 13 Nov 1996 10:40:44 -0800 (PST) Cc: djgpp AT delorie DOT com (DJGPP List Alias) In-Reply-To: <566b2b$9cl@news.cc.utah.edu> from "Paul Koshevoy" at Nov 11, 96 04:48:08 am MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 830 > Here is a part of my code : > > char * ext=filename[pos]->get_part2(0); > if( !strcmp(ext,"bat") || !strcmp(ext,"BAT") || !strcmp(ext,"EXE") > || !strcmp(ext,"COM") || !strcmp(ext,"exe") || !strcmp(ext,"EXE")) > { > panel1->kill(); > panel2->kill(); > int result=system(filename[pos]->get_filename()); > panel1->refresh(); > panel2->refresh(); > } Have you gotten a response, yet? The code LOOKS OK. I suggest that you write a simple test program to see if everything functions as you would expect it to do. I would guess that it is returning, but that the refresh () calls don't do what they're told. By the way, you may want to change the strcmp code to be more robust. The preferred call is strcasecmp which does a case insensitive comparison. -- Marc Singer