Title: Batch file to create multiple folder and subfolders
Tags: windows;batch-file;command-line
Question: Need help:
We want to create a batch file in DOS (run at command prompt) which will create 50 folders (e.g. folder1, folder2, folder3 etc...) and also create subfolders (filesin, filesout) in each of them.
Regards

Here is the accepted answer: for /L %%g in (1,1,50) do (
md folder%%g
md folder%%g\filesin
md folder%%g\filesout


{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 1, 'CommentCount': 0, 'ContentLicense': 'CC BY-SA 3.0', 'CreationDate': '2012:00:11/22/12', 'FavoriteCount': 2.0, 'PostTypeId': 1, 'Tags': '<windows><batch-file><command-line>', 'Title': 'Batch file to create multiple folder and subfolders', 'ViewCount': 11559, 'id': 13506993, 'user_AboutMe': '', 'user_AccountId': 1528515.0, 'user_DisplayName': 'Conrad Jagger', 'user_Reputation': 643.0, 'user_Views': 74.0, 'user_id': 1426339.0}}