This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Bash fails to run .bat file with spaces in pathname and argument
Sean Daley writes:
> Read further down that thread and you'll also see that people discovered some
> additional horrifying things about windows cmd.
>
> http://sourceware.org/ml/cygwin/2004-09/msg00277.html
Referring to that old post, the following works:
C:\>cmd /c ""C:\Documents and Settings\test.bat" "Hello, world.""
"Hello, world."
Yes, quoting is quite weird with cmd.exe.
--
Enrico
--
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/