This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: system call
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Tue, 1 Mar 2005 10:02:33 +0100
- Subject: Re: system call
- References: <42235790.3070208@subnet142.com> <20050301095849.2242440d.gigy@freemail.it>
- Reply-to: cygwin at cygwin dot com
On Mar 1 09:58, Muzero wrote:
> When i try to compile and execute a simple program like this:
>
> int main()
> {
> system("dir");
> return 0;
> }
"dir" is a cmd.exe builtin. Try `system("cmd /c dir");'
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader mailto:cygwin@cygwin.com
Red Hat, Inc.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/