This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: system call


Thanks for your reply but it still do not work...
the problem is thant under cygwin the execution of "dir" works fine but i have to run the program in an enviroment WITHOUT cygwin: it's in the DOS shell that the system() call do not works and return with code number 127.
In the final application, i'll not use "dir" command, but another program.

Muzero

> 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/
> 
> 

--
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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]