I have a situation where I need to copy a few specific files in a MSBuild script, but they may or may not exist. If they don\'t exist it\'s fine, I don\'t need them then. But th
The easiest would be to use the ContinueOnError flag http://msdn.microsoft.com/en-us/library/7z253716.aspx
But if something else is wrong you will not notice it. So the condition exist from madgnome's answer would be better.