I have the variable:
set "whattodelete=*xxx* *yyy* *zzz*"
and the following directory tree:
C:\Temp
Folder1 Folder2 Folder3
1aaa1 2aaa2 ...
1bbb1 2bbb2
1ccc1 2ccc2
1xxx1 2xxx2
1yyy1 2yyy2
1zzz1 2zzz2
where 1aaa1 might be either directory or file.
I've read this: Command line tool to delete folder with a specified name recursively in Windows?
but can't figure out how to add loop for variable which contains many files/directories. I suspect that here might be one more inner or outer loop but I'm not so close with variable expansion. Could you help me?