Is there a simple way to copy a file in a post-build event for a Visual Studio project, but only if the file exists? (i.e. don\'t fail the build if the file doesn\'t exist)
Use "IF" command:
IF EXIST file.txt xcopy file.txt [destination_folder]\ /Y