Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-Id: <4.3.1.2.20000918083514.00b4af80@pop.ma.ultranet.com> X-Sender: lhall AT pop DOT ma DOT ultranet DOT com X-Mailer: QUALCOMM Windows Eudora Version 4.3.1 Date: Mon, 18 Sep 2000 08:37:33 -0400 To: "Denys Gariepy" , From: "Larry Hall (RFK Partners, Inc)" Subject: Re: B20 : problem using system("cmd"); In-Reply-To: <000701c020d4$08d3aea0$1e7c010a@IRIS.capitale.qc.ca> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id IAA31270 At 02:20 PM 9/17/2000, Denys Gariepy wrote: > Bonjour, > > I try to execute the folowing program compiled with B20 and he do not > > work correctly. > > I also add the output of the 'cygcheck' > > > > Denys Gariépy. > garden AT capitale DOT qc DOT ca Your program assumes that "dir" is an executable. Its not. Its a command in the DOS command prompt program. If you want this to work, you need to run the DOS prompt as part of your invocation (i.e. system("cmd.exe /c dir")) Larry Hall lhall AT rfk DOT com RFK Partners, Inc. http://www.rfk.com 118 Washington Street (508) 893-9779 - RFK Office Holliston, MA 01746 (508) 893-9889 - FAX -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com