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 Date: Mon, 7 Aug 2000 10:21:22 -0400 Message-Id: <200008071421.KAA02793@envy.delorie.com> From: DJ Delorie To: zhong_gang AT hotmail DOT com CC: cygwin AT sourceware DOT cygnus DOT com In-reply-to: (zhong_gang AT hotmail DOT com) Subject: Re: System call References: > 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