I have the following path:

"d:\workspace\Server trunk - CI\make\make & publish.bat"

However, when I try to execute this from a cmd shell, I get the error:

'd:\workspace\Server' is not recognized as an internal or external command, operable program or batch file.

What am I doing wrong? Is there a way to escape those spaces properly?


You need to quote everything bar the extension

"d:\workspace\Server trunk - CI\make\make & publish".bat

"d:\workspace\Server trunk - CI\make\make" & publish.bat

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.