This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
Re: System call
- To: zhong_gang at hotmail dot com
- Subject: Re: System call
- From: DJ Delorie <dj at delorie dot com>
- Date: Mon, 7 Aug 2000 10:21:22 -0400
- CC: cygwin at sourceware dot cygnus dot com
- References: <F68EqPeQ1qV94h4Jzgi0000240a@hotmail.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@sourceware.cygnus.com