The short version: is there a way to to write an "and" or an "or" clause in a batch file?
The slightly longer version:
I've inherited a Visual Studio project that creates a dll and then copies that dll to another location. As a post build step, VS runs the following script.
if not '$(ConfigurationName)' == 'DebugNoSvc' goto end
xcopy /Y $(TargetDir)*.config $(ProjectDir)..\myService\bin\Debug
xcopy /Y $(TargetDir)*.config $(ProjectDir)..\myService\bin\DebugNoSvc
:end
It looks like there's a problem when the project is compiled as Debug, since it doesn't do the copy (I'm guessing that at some point the middle section got updated, but the if clause didn't.)
Is there an easy way to do complex boolean logic in "if" clauses in batch?