Thread: Post-Build commands in MSVC

  1. #1
    Registered User
    Join Date
    Aug 2001

    Post-Build commands in MSVC

    Ive looked through msdn for a few hours, but Im not having any luck finding what I need.

    I have a big project, it has many resource files (textures, models, etc..) that get loaded by the .exe. I want to create a master folder for the program so that I can keep everything orginized. if I build the .exe directly to the directory then the .ilk file is put there also.

    What I need is some way to have MSVC automatically move the finished .exe file to the proper directory after it is built.

    I could probably do it with a macro, but I have allways wondered what you could do with the Post-Build tab under Project->Settings.

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    You can put something like this in your post-build step:
    copy $(TargetPath) <somewhere else>
    "$(TargetPath)" is the fully qualified name for the project output file.

    You can lookup other usefull macro's that are supported here.


Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 0
    Last Post: 09-24-2006, 06:26 AM
  2. Opinions on custom system build
    By lightatdawn in forum Tech Board
    Replies: 2
    Last Post: 10-18-2005, 04:15 AM
  3. GCC (cygwin) much faster than MSVC, Borland?
    By Sargnagel in forum C Programming
    Replies: 15
    Last Post: 08-05-2003, 03:15 AM
  4. Need help setting up SDL with MSVC
    By JOsephPataki in forum C Programming
    Replies: 4
    Last Post: 06-20-2003, 03:35 AM
  5. 40 post drop
    By gamegod3001 in forum A Brief History of
    Replies: 6
    Last Post: 10-12-2001, 12:14 PM