System call

DJ Delorie dj@delorie.com
Mon Aug 7 07:21:00 GMT 2000


>   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



More information about the Cygwin mailing list