From: gnuwin32 AT niteroi DOT gsfc DOT nasa DOT gov (GNU Win32) Subject: Re: system() call behaviour. 9 May 1998 00:32:14 -0700 Message-ID: <199805090103.VAA10439.cygnus.gnu-win32@woodmore.gsfc.nasa.gov> References: <01BD79A4 DOT 73339640 AT ts11ip130 DOT cadvision DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit To: paslawsk AT cadvision DOT com (Dan Paslawski) Cc: gnu-win32 AT cygnus DOT com, paslawsk AT cadvision DOT com Dan, > > When running this under the Cygwin Bash environment, this code works properly. However, > if I run the code in a Windows NT Command Prompt Window (or an MS_DOS Window under > Windows 95), the calls to system() fail. I have also tried this segment of code with other > commands (eg. dir, copy, mspaint), with the same results. > > Any suggestions? > I had similar problems. Make sure "sh.exe" is in your path and system() will work under the MS-DOS shell. -- Arlindo da Silva dasilva AT alum DOT mit DOT edu - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".