mercredi 19 décembre 2018

multiple ifs in one row of cmd

Does anybody know a way of having multiple if-cases in one line of cmd code? I mean not nested if cases, but a row. I need cmd to still execute a second if case which is in the same line, even if the first one returns false.

See this simple example:

IF NOT EXIST test\ (mkdir test) & IF NOT EXIST test\folder\ (mkdir test\folder)

This will always skip the second IF, if the first one is false, but I need it to never skip, wether it's true or not.

Aucun commentaire:

Enregistrer un commentaire