Problem Executing Batch File in Pre-Build Event

前端 未结 8 1390
攒了一身酷
攒了一身酷 2021-02-20 01:05

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:

8条回答
  •  长情又很酷
    2021-02-20 01:37

    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!

提交回复
热议问题