2

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?

Igal Tabachnik
  • 405
  • 1
  • 5
  • 11

2 Answers2

9

You need to quote everything bar the extension

"d:\workspace\Server trunk - CI\make\make & publish".bat
user9517
  • 114,104
  • 20
  • 206
  • 289
3

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

Jack Hughes
  • 133
  • 5