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

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/


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