This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
How to parse windows command line
- From: Tron Thomas <tron dot thomas at verizon dot net>
- To: cygwin at cygwin dot com
- Date: Wed, 23 Apr 2003 21:11:19 -0700
- Subject: 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/