copy txt file to compile location

I have an application with a txt file that I have added through "Add exsisting Item".

When I compile the application, I want to copy this txt file to the compile destination where the exe resides.

Anyone know how to do this


Answer this question

copy txt file to compile location

  • Priddin

    You can use a Post-build event. See under project properties -> build events

    use something like this

    cd $(ProjectDir)
    copy YourTextFile.txt $(TargetDir)

    Brian

  • copy txt file to compile location