lundi 7 mai 2018

IF query with multiple choices

I have this batch-file where I'm moving files from one drive to another. The batch loops through the subdirs and moves everthying it finds. So far so good. Until today I did this in all but one subdir with an if-statement like this:

IF NOT !subdir! == SEW (
move part
)

Now I want to do this in all but two subdirs. How can I write my if-statement that is skipps those two dirs? In R, I could use somethind like

y <- c("SEW","SWW")
if(!x %in% y){
  move part
}

Is there something like the %in% command from R for a batch file? Or another solution to skip two subdirs?

Aucun commentaire:

Enregistrer un commentaire