X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Message-ID: <414B48C0.1B6F801F@yahoo.com> From: CBFalconer Organization: Ched Research X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: calling unzip32 from C program References: <2r0dd4F14ift1U1 AT uni-berlin DOT de> <414B140F DOT 98A3CCF4 AT yahoo DOT com> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Lines: 24 Date: Fri, 17 Sep 2004 20:41:41 GMT NNTP-Posting-Host: 12.76.134.53 X-Complaints-To: abuse AT worldnet DOT att DOT net X-Trace: bgtnsc04-news.ops.worldnet.att.net 1095453701 12.76.134.53 (Fri, 17 Sep 2004 20:41:41 GMT) NNTP-Posting-Date: Fri, 17 Sep 2004 20:41:41 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Rafael García wrote: > CBFalconer escribió: >> >> I believe that using 4dos will allow you to do all those things >> via a .btm file. > > I could find a more simple solution, like using another unzip > program (I have tried an old PKUNZIP.EXE that works fine), but > the point is to know what is failing here. The failure is the use of "system()". In C the return only says whether or not some shell was successfully called, and has nothing to do with whether the shell succeeded in executing the command. Various unzippers (I believe info-zip is one) supply libraries to allow a program to do such actions on its own. -- "This is a wonderful answer. It's off-topic, it's incorrect, and it doesn't answer the question." -- Richard Heathfield "I support the Red Sox and any team that beats the Yankees"