One to Many trick 😉


Tired of creating multiple folders one by one? No worries you are at the right place, lets checkout how to create 5 folders with in a sec using the command. The number 5 is just for example you can try 1 million also if you like to test 😃

Lets rock ‘n’ Roll

  • Open Command prompt on your preferred location, you can open it by clicking start and typing ‘cmd’
  • The below command is to create 10 folders, you can change the variable accordingly
    FOR /L %N IN (1,1,5) DO md "classadviser_%N"
  • Kudos! simple as it is right 🙃 check out the sample below


FOR /L %%parameter IN (start,step,end) DO command
start : The first number
step : The amount by which to increment the sequence
end : The last number
command : The command to carry out, including any parameters.

This can be a single command, or if you enclose it
in (brackets), several commands, one per line.
%%parameter : A replaceable parameter:
in a batch file use %%G (on the command line %G)
So (20,-5,10) would generate the sequence (20 15 10)
(1,1,5) would generate the sequence 1 2 3 4 5

Add Comment

By Mano

Get in touch

Let me know on Class room, if any topic which you looked out here is not available, I will make sure that will be there for you on next visit.