Skip to main content
1 of 4

How to create folders in one folder with batch

Hello i want to create 25 folders with names into one folder. example: root\sound\weapons\ak,m4,m1,m45,m9 etc.

I know how to create a folder with sub folders but not with multiple folders.

How i can array with batch.

Command Prompt Copy

FOR %A IN (ak,m4,m1,m45,m9) DO MD root\sound\weapons\%~A

Batch Script

FOR %%A IN (ak,m4,m1,m45,m9) DO MD root\sound\weapons\%%~A

Other Notes

Please take a moment and look here (Accepting An Answer) to familiarize yourself with accepting answers on Super User and other Stack Exchange communities for that matter. If this works for your needs, accepting the answer would be appreciated for gratitude.

Further Reading and Resources