delorie.com/archives/browse.cgi | search |
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 |
Date: | Mon, 7 Aug 2000 10:21:22 -0400 |
Message-Id: | <200008071421.KAA02793@envy.delorie.com> |
From: | DJ Delorie <dj AT delorie DOT com> |
To: | zhong_gang AT hotmail DOT com |
CC: | cygwin AT sourceware DOT cygnus DOT com |
In-reply-to: | <F68EqPeQ1qV94h4Jzgi0000240a@hotmail.com> |
(zhong_gang AT hotmail DOT com) | |
Subject: | Re: System call |
References: | <F68EqPeQ1qV94h4Jzgi0000240a AT hotmail DOT com> |
> errno=system("dir"); There is no program called "dir" anywhere on your computer. No dir.exe, no dir.com. Only the command shell knows how to run "dir" (and other built-ins). So, if you want to do a "dir" you must tell the command shell to do it, either with system("cmd /c dir") or system ("command /c dir"). -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |