How to create Folders list

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
imgro0t
Posts: 4
Joined: 05 Feb 2016 06:55

How to create Folders list

#1 Post by imgro0t » 05 Feb 2016 12:44

Hallo, im Alejandro from Chile, my english isnt to good so im gonna explain that very simple, i just want to know how to create folders with a batch script..well i know how... but i wanna create folders from 1 to 100, let me explain that
for example :

\\DataBase\Locales\Local_1

to

\\DataBase\Locales\Local_xxx

is that possible no make ???.. i need to create that list.. and dont wanna do it with the mouse... right clicking and that..

please need some help..

Greetz

Alejandro

Squashman
Expert
Posts: 4486
Joined: 23 Dec 2011 13:59

Re: How to create Folders list

#2 Post by Squashman » 05 Feb 2016 13:48

Code: Select all

@echo off
for /L %%I in (1,1,100) do md "\\DataBase\Locales\Local_%%I"

imgro0t
Posts: 4
Joined: 05 Feb 2016 06:55

Re: How to create Folders list

#3 Post by imgro0t » 05 Feb 2016 16:07

Oh u saved my life :) im gonna practise batch again :) i start to code when i was young.. and stop it for like 10 years.. now that im old i realize how i need it.... thank you again

Post Reply