I have a series of IF statements in a windows batch file like so:
IF %One% == YES (
myprogram1
)
IF %Two% == YES (
myprogram2
)
IF %Three% == YES (
myprogram3
)
even if they are all true, only the first will execute. How do I get them to wait? If I execute multiple programs within a single IF statement it behaves synchronously, running one after the other. I don't want N! if statements for obvious reasons.
I'm executing this batch file from a .NET
process and redirecting the output so I don't think start /wait
will work. I can't have it start a new window. What am I missing?