简体   繁体   English

批处理文件以创建多个文件夹和子文件夹

[英]Batch file to create multiple folder and subfolders

Need help: 需要帮忙:

We want to create a batch file in DOS (run at command prompt) which will create 50 folders (eg folder1, folder2, folder3 etc...) and also create subfolders (filesin, filesout) in each of them. 我们想在DOS中创建一个批处理文件(在命令提示符下运行),该文件将创建50个文件夹(例如folder1,folder2,folder3等...),并在每个文件夹中创建子文件夹(filesin,filesout)。

Regards 问候

for /L %%g in (1,1,50) do (
    md folder%%g
    md folder%%g\filesin
    md folder%%g\filesout
)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM