delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/07/27/10:51:02

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <39804C1C.C84E6F22@cygnus.com>
Date: Thu, 27 Jul 2000 16:50:04 +0200
From: Corinna Vinschen <vinschen AT cygnus DOT com>
Reply-To: cygwin <cygwin AT sources DOT redhat DOT com>
X-Mailer: Mozilla 4.73 [en] (X11; I; Linux 2.2.14-SMP i686)
X-Accept-Language: de, en
MIME-Version: 1.0
To: cygwin AT sources DOT redhat DOT com
CC: Glenn DOT Davis AT predictive DOT com
Subject: Re: Problem with system()
References: <OF0C8FF995 DOT E3BB8A61-ON85256929 DOT 004AAD7F AT predictive DOT com> <20000727094828 DOT A12969 AT cygnus DOT com>

Chris Faylor wrote:
> 
> On Thu, Jul 27, 2000 at 09:42:19AM -0400, Glenn DOT Davis AT predictive DOT com wrote:
> >Chris,
> >I guesss I should have given more info.
> >I tried
> >        system ("command /c dir")
> >and yes, I am using Windows 95.
> 
> I don't know what's wrong but I would check basic things like your PATH.
> If you don't have a command.com in your path then system is obviously
> not going to be able to run "command".

You have to use "command.com /c dir" because the standard search
algorithm only finds apps which don't have an extension or which have
the ".exe" extension. ".com" isn't supported.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                        mailto:cygwin AT sources DOT redhat DOT com
Red Hat, Inc.
mailto:vinschen AT cygnus DOT com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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