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

Reply via email to