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

Stefano picture Stefano · Feb 27, 2011 · Viewed 7.9k times · Source

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"

Answer

Peter Huene picture Peter Huene · Feb 27, 2011

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.