delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/09/17/08:45:09.1

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: =?ISO-8859-1?Q?Rafael_Garc=EDa?= <rafael_no_spam_no_ AT geninfor DOT com>
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: <cielml$fln$1@nsnmpen3-gest.nuria.telefonica-data.net>
NNTP-Posting-Host: 100.red-80-34-252.pooles.rima-tde.net
Mime-Version: 1.0
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019