I’m currently trying to write a batch file to create folders and sub-folders and well even more sub-folders in those sub-folders.
Currently I’ve been able to make main folders and a single set of sub-folders with this
md 1 2 3 4 5 & FOR /D %G in ("*") DO cd "%CD%%`nxG" & md 1 2 3 4 5
but this only works in a cmd window and only makes a single subset of sub-folders, is there a way I can extend this to make another set of folders within the sub-folders? And how would I convert this to work in a .bat file.
First post so sorry if I’m not clear or I have incorrect tags.
Full explanation for how this works
md 1 2 3 4 5 & FOR /D %G in ("*") DO cd "%CD%%`nxG" & md 1 2 3 4 5
as I’m not entirely sure and explanations for replies would be very much appreciated for anyone else who stumbles across this looking for answers.
Moscow Raccoon is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.