I want execute .bat file. I think easy way to do this is invoke $COMSPEC to do that. Like this
$(subst \,/,$(COMSPEC)) /c file.bat from Makefile. But cmd fail with error: bash# cat 1.bat @echo off echo xxx bash# cmd.exe /c 1.bat bash: /cygdrive/c/WINDOWS/system32/cmd.exe: Bad address I found that this work: bash# cmd.exe \\/c 1.bat xxx bash# cmd /c 1.bat xxx This experiments done under Cygwin 1.7. I found that this already reported and seems fixed: http://old.nabble.com/1.7.1-%22Bad-Address%22-when-running-cmd.exe-on-64-bit-windows-server--2008-td27276492.html Under Cygwin 1.5 no such issue. I get http://cygwin.com/snapshots/cygwin1-20100318.dll.bz2 from http://cygwin.com/snapshots/ and now all work ok. But where can I get fixed official version of cygwin1.dll? Or how long wait for release? -- 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