Reputation: 2132
When I press ctrl + F5 or F5 in VC++ I need to first execute a script that setups the environment such as cmd variables etc and then execute my C++ application.
Is is possible to execute such bat file before execution/debugging, not before/after compilation/linkiage.
Upvotes: 1
Views: 3800
Reputation: 14119
In the debugging section of your project properties you can set the command which is executed. You are free to define here what to execute. Set the path to your batch file and start your application from your batch file. You can even add arguments that are passed to your batch file.
Upvotes: 2