-1
I've been using this line to create multiple folders in different sub-folders using a wildcard:
FOR /d %A IN ("C:\users\me\desktop\test\*") do mkdir "%A\test3\"
My problem now is that I have to create multiple folders after the wildcard and only in an already existing folder called test2
:
FOR /d %A IN ("C:\users\me\desktop\test\*\test2") do mkdir "%A\test3\"
How do I get this to work?
1You'll need an additional
if exist
otherwise mkdir will just create test2 everywhere. – user1686 – 2019-10-15T11:26:27.573You're right, @grawity, thanks for the hint! I updated my answer accordingly... – aschipfl – 2019-10-15T14:41:20.337