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: <39804C1C.C84E6F22@cygnus.com> Date: Thu, 27 Jul 2000 16:50:04 +0200 From: Corinna Vinschen Reply-To: cygwin 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: <20000727094828 DOT A12969 AT cygnus DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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