This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: 1.7.1: Problem with cygstart and arguments containing spaces
- From: Ilya Beylin <beylin dot i at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 4 Mar 2010 22:12:43 +0100
- Subject: Re: 1.7.1: Problem with cygstart and arguments containing spaces
- References: <4B8E2648.3070603@charlesroper.co.uk> <4B901512.8080703@laposte.net> <e6940be71003041251j37d25cadj428f3f55336437b9@mail.gmail.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.
ÂÂÂ cygstart --wait $WINDIR/system32/cmd /c echo 1 2Â \& pause
The problem is probably that windows passes arguments as a
concatenated string, to be parsed by the application. Try to pass the
whole command line to your program, it may work better:
 cygstart /cygdrive/d/Software/Console2/Console.exe '-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