Batch Files Can Be Handy


Super Moderator
Staff member
I remember in the old days of DOS when everything was done from the command line (there was no such things as icons you clicked on).

Batch files which are basically a series of commands run from within one file are still handy even in today's icon driven world.

Here's an example of how you can create multiple folders in an instance by running one batch file.

Try these quick examples for yourself:

1. Create a new folder on your Desktop (Right click the Desktop & choose New>Folder)

2. Double click that new folder to open it.

3. Right click inside that new folder and choose New>Text Document.

4. Double click that new text document to open it.

Paste in the following line

for /l %%n in (1,1,10) DO md %%n

Save the file

Rename the file & call it Make Folders.bat

Now double click your new Batch file.

It should have created 10 new folders named 1 to 10.

If you done it all again but pasted in this line instead,

for /l %%n in (1,1,10) DO md Season" "%%n

It will create 10 new folders also but this time they will be named Season 1 to Season 10