Skip to main content
remove inappropriate asking for acceptance of the answer
Source Link
DavidPostill
  • 158.4k
  • 77
  • 365
  • 408

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 and Paste

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"

Notes: In the logic part above where you see IN (ak,m4,m1,m45,m9) you will put the folder names in there separated by commas which you want to create. The root\sound\weapons\ could also be C:\Path\Path\ or something like that as well.

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

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 and Paste

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"

Notes: In the logic part above where you see IN (ak,m4,m1,m45,m9) you will put the folder names in there separated by commas which you want to create. The root\sound\weapons\ could also be C:\Path\Path\ or something like that as well.

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

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 and Paste

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"

Notes: In the logic part above where you see IN (ak,m4,m1,m45,m9) you will put the folder names in there separated by commas which you want to create. The root\sound\weapons\ could also be C:\Path\Path\ or something like that as well.

Further Reading and Resources

added 14 characters in body
Source Link

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

Command Prompt Copy and Paste

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

Batch Script

Batch Script

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

Notes: In the logic part above where you see IN (ak,m4,m1,m45,m9) you will put the folder names in there separated by commas which you want to create. The root\sound\weapons\ could also be C:\Path\Path\ or something like that as well.

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

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

Notes: In the logic part above where you see IN (ak,m4,m1,m45,m9) you will put the folder names in there separated by commas which you want to create. The root\sound\weapons\ could also be C:\Path\Path\ or something like that as well.

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

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 and Paste

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"

Notes: In the logic part above where you see IN (ak,m4,m1,m45,m9) you will put the folder names in there separated by commas which you want to create. The root\sound\weapons\ could also be C:\Path\Path\ or something like that as well.

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

added 287 characters in body
Source Link

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

Notes: In the logic part above where you see IN (ak,m4,m1,m45,m9) you will put the folder names in there separated by commas which you want to create. The root\sound\weapons\ could also be C:\Path\Path\ or something like that as well.

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

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

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

Notes: In the logic part above where you see IN (ak,m4,m1,m45,m9) you will put the folder names in there separated by commas which you want to create. The root\sound\weapons\ could also be C:\Path\Path\ or something like that as well.

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

Source Link
Loading