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:
It looks like my problem was the length of the path to the batch file. As this was a proof of concept I let VS create it in the default location:
C:\Documents and Settings\UserXXX\My Documents\Visual Studio 2010\Projects\SolutionXXX\ProjectXXX\foo.bat
As soon as I moved the solution to a location with a shorter path it worked fine. =P
Thanks for the suggestions!