X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: =?ISO-8859-1?Q?Rafael_Garc=EDa?= Newsgroups: comp.os.msdos.djgpp Subject: system() return value if no program present Date: Fri, 17 Sep 2004 14:33:19 +0200 Organization: Telefonica Data Espagna Lines: 15 Message-ID: NNTP-Posting-Host: 100.red-80-34-252.pooles.rima-tde.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: nsnmpen3-gest.nuria.telefonica-data.net 1095424533 16055 80.34.252.100 (17 Sep 2004 12:35:33 GMT) X-Complaints-To: usenet AT nsnmpen3-gest DOT nuria DOT telefonica-data DOT net NNTP-Posting-Date: Fri, 17 Sep 2004 12:35:33 +0000 (UTC) User-Agent: Mozilla Thunderbird 0.5 (Windows/20040207) X-Accept-Language: es-es, es To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com I'm trying to decompress an archive from a C program and I use system("unzip prueba.zip"); I intend to have an "unzip.bat" that will do the work, containing the details about format. but when there is no "unzip.bat" nor "unzip.exe" I get an interactive shell launched. I need to get an error code from system() and not to stop execution of main program. I'm running WinXP Does anybody know about this? Thanks