I\'m trying to execute a batch file during a pre-build event. I have a new project and have added foo.bat to it. The file contains the following line:
The problem I suspect is that there's a SPACE character in your folder path.
So this command will probably work for c:\development\projectABC\foo.bat
but not for c:\development\project ABC\foo.bat
At least that was the problem for me, there could be other issues, but I suspect this is the most common. The solution: put quotation marks around you batch call:
"c:\development\project ABC\foo.bat"