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: Formatting command line arguments when starting a Cygwin process from a native process


On 09/05/2016 11:43, Peter Rosin wrote:
Hi!


I'm not using cmd, or any shell for that matter (that's actually the
point) - I am in a native Win32 process invoking a Cygwin process
directly using the Windows API's CreateProcess call. As it happens,
the program I have already has the arguments for the Cygwin process
in an array, but Windows internally requires a single command line
string (which is not in any related to Cmd).

Ultimate overview of MS escape howto :

https://blogs.msdn.microsoft.com/twistylittlepassagesallalike/2011/04/23/everyone-quotes-command-line-arguments-the-wrong-way/

Regards
Marco



--
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]