I am currently working on a Visual Studio solution that has multiple projects each building an exe or library to a different directory. My aim was to copy some of the output files all into the same folder as the main application is dependent on the other projects residing in the same directory.
Previously, if I had updated and rebuilt one of the projects in the solution I would manually locate the output file and drag it into the right place. However today I discovered the post build events area in Visual studio (right click solution > Build events). Here you can input your own DOS commands and utilise a bunch of VS environmental macros/variables to create a simple batch script which is automatically executed every time you build/rebuild your solution. Any output from your DOS commands (echo) is printed into the ouput window inline with all the other build information Visual Studio provides during the build process.
Here is a simple example which solved my problem but there are much more advanced techniques you could use with this feature.
echo Copying pre loader application to build directory copy "$(SolutionDir)cwpl_app\bin\Debug\CwplApp.exe" "$(OutDir)" echo Launching pre loader tool "$(SolutionDir)cwpl_app\bin\Debug\CwplApp.exe"