How to pass parameters to a windows application

Csaba Raduly rcsaba@gmail.com
Tue Aug 3 07:27:00 GMT 2010


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
> Users\Desktop\projects\crisfield\trunk\etc""
>
> jpyeron@phoenix /projects/crisfield
> $ cmd /c "\"start \"\" \"C:\\Documents and Settings\\All
> Users\\Desktop\\projects\\crisfield\\trunk\\etc\"\""
> The filename, directory name, or volume label syntax is incorrect.
(snip)

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
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list