It seems that there are no conditions for OR / AND in conditional expressions in Pre-Post Build events, at least due to the lack of documentation here: http://technet.microsoft.com/en-us/library/bb490920.aspx
You will need to re-write the IF statement to do what you would like to do.
if not "$(ConfigurationName)" == "Debug" ( rem do something ) else if not "$(ConfigurationName)" == "Release" ( rem do the same thing as above )
I hope this helps, although your conditions do not make sense to me. :-)
source share