This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: 1.7.1: Problem with cygstart and arguments containing spaces


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]