0

So I want to create lots of different folders (lots!) which will have the following format:

RobocopyVAR          -  where VAR will be a letter, or number etc.

Just for learning purposes, how could I create a basic batch file to automate creating folders:

RobocopyA       through to           RobocopyZ

Cheers!

1 Answer 1

1

Put this into a batch file:

for %%L in (A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z) DO (md Robocopy%%L)
Sign up to request clarification or add additional context in comments.

3 Comments

Similar. You basically just need start and end
Ah sorry, I read bash not batch. Let me correct my response
Corrected it. Place the code into a file e.g. makeDir.bat and run it.

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.