Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要一个批处理代码,如果我输入一个数字“11”,然后输入一个文本“ss”,那么它应该创建一个文件夹名称为“ 11-ss ”,在该文件夹中我需要 3 个文件夹,分别命名为 1、2、3。
可能吗?
mkdir %1-%2\1 mkdir %1-%2\2 mkdir %1-%2\3
将此保存为批处理并调用它 batchfile.bat 11 ss
batchfile.bat 11 ss
@echo off set /p number=enter the number: set /p text=enter the text: md %number%-%text%\1 %number%-%text%\3 %number%-%text%\1
这是一个交互式解决方案...