I'm kinda newbie to CMD. I was wondering; is it possible to check for multiple criteria on different variables at once, using IF command? I mean, what would be the syntax of IF command if you wanted to check 2 different variables at the same time matching the given criteria? I mean does that thing exist? Something like:
IF %%variable1%% == variableone AND %variable2% == variabletwo do stuff
I've been trying to sort this out myself, but couldn't find a way to to doit. Kept getting errors. Maybe there's something wrong in the syntax of the command or I'm missing something.