Execute exe file or bat file after compile with Visual Studio 2010

8.1k views Asked by At

I would execute an exe file or a bat file after that the compilation of a C++ program ends. How could I do this?

EDIT 1 This is my actual command line:

start "C:\mypath\myexe.exe myarguments"
2

There are 2 answers

9
Peter Huene On

Check out the "Build Events" section in your C++ project's configuration properties. Here you can define commands to run before the project builds, before the linker runs, and after the project has built.

0
Anuraj On

Check Post Build Event command line, in the Project properties.