1

I need a batch code, where if I enter a number "11" and then a text "ss" then it should create a folder name as "11-ss", within the folder I need 3 folders named 1, 2, 3.

Is it possible?

1
  • Have you tried anything? Commented Jan 18, 2013 at 20:04

2 Answers 2

3
mkdir %1-%2\1
mkdir %1-%2\2
mkdir %1-%2\3

Save this as batch and call it by
batchfile.bat 11 ss

Sign up to request clarification or add additional context in comments.

Comments

1
@echo off
set /p number=enter the number:
set /p text=enter the text:
md %number%-%text%\1 %number%-%text%\3 %number%-%text%\1  

this is an interactive solution ...

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.