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