This is the mail archive of the
mailing list for the Cygwin project.
Re: How to pass parameters to a windows application
- From: Csaba Raduly <rcsaba at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Tue, 3 Aug 2010 09:27:14 +0200
- Subject: Re: How to pass parameters to a windows application
- References: <E2B92C7CBBA64B158FA61FDD9DDC20BC@phoenix>
On Mon, Aug 2, 2010 at 2:43 AM, Jason Pyeron wrote:
> I am at my wits end trying to figure out how to execute this in bash
> C:\WINDOWS>cmd /c "start "" "C:\Documents and Settings\All
> jpyeron@phoenix /projects/crisfield
> $ cmd /c "\"start \"\" \"C:\\Documents and Settings\\All
> The filename, directory name, or volume label syntax is incorrect.
cygstart was already suggested; if it doesn't help, try single quotes :
$ cmd /c start 'C:\Documents and Settings\All Users\...'
Bash uses backslashes as the escape character so \trunk ends up as <TAB>runk.
Single quotes prevent bash from interpreting backslashes and spaces.
Life is complex, with real and imaginary parts.
"Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds
"People disagree with me. I just ignore them." -- Linus Torvalds
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple