X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40 X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: References: <4B8E2648 DOT 3070603 AT charlesroper DOT co DOT uk> <4B901512 DOT 8080703 AT laposte DOT net> Date: Thu, 4 Mar 2010 22:12:43 +0100 Message-ID: Subject: Re: 1.7.1: Problem with cygstart and arguments containing spaces From: Ilya Beylin To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 Hello, Cyrille Lefevre wrote: > cygstart --wait /system32/cmd /c "echo 1 2&pause" I do not think it is a convincing example. cmd.exe treats everything that follows / c as a single command, so yuo would get the same result even without quotes. =C2=A0=C2=A0=C2=A0 cygstart --wait $WINDIR/system32/cmd /c echo 1 2=C2=A0 \= & pause The problem is probably that windows passes arguments as a concatenated string,=C2=A0 to be parsed by the application. Try to pass the whole command line to your program, it may work better: =C2=A0=C2=A0=C2=A0 cygstart /cygdrive/d/Software/Console2/Console.exe=C2=A0= '-d "C:/Program Files" ' Regards, Ilya -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple