Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Sat, 14 Dec 2002 21:33:56 -0500 From: Christopher Faylor To: cygwin AT cygwin DOT com Cc: atreidpub AT netcourrier DOT com Subject: Re: can't manage to use "windows" command-line (C development) Message-ID: <20021215023356.GB4720@redhat.com> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com, atreidpub AT netcourrier DOT com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.1i On Sun, Dec 15, 2002 at 03:24:29AM +0100, Atreides wrote: >Hi, > >While trying to do some C programs under cygwin, in order to launch usual >Win32 programs, I faced problem to launch them with arguments : > >I explain : I want to launch "Pilot Install" from envicon.com with a text >file (full path included) for parameter. I tried to launch it using a cygwin >shell, does not work... (argument is not understood by the program). From a >DOS Box (with properly arranged paths of course) : same thing ... >But when I enter the same command-line, as in the DOS Box, in the >Start/Execute Panel in the start menu : It works!!! > >So my question is : is it possible in a C program under cygwin (I use gcc), >to launch such command lines? (like the "system()" instruction, but for >windows). Yes, it's possible. Try running "net use", for example. Most Windows command-line tools work fine from a cygwin shell. You're not providing enough details to debug the problem, unfortunately. You have to think about this from the point of view of someone who has no idea what "Pilot Install" is, what its command line parameters are, or what you could conceivably be typing on the command line that would be causing a problem. It could be as simple as your not properly quoting command line arguments which use '\' characters. There's no way to tell, however, because you aren't providing details. See http://cygwin.com/bugs.html for more details on how to provide details. cgf -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/