This is the mail archive of the cygwin@cygwin.com 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]

How to parse windows command line


I have written a Windows application that expects a file name as a command line argument. If I compile the program with a either the Borland or Micrsoft compilers I get just the file name as the command line argument when I run the program.

However if I compile the program with the Cygwin compiler I get some like the following for the command line argument when I run the program:

"Directory\\Directory\\Program.exe\" Filename "

This is make things akward. I'm not sure why Cygwin is doing this when other compilers don't.

Does Cygwin provide an API or other strategy to deal with this scenario?



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


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