Page 1 of 1

How to create Folders list

Posted: 05 Feb 2016 12:44
by imgro0t
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

Re: How to create Folders list

Posted: 05 Feb 2016 13:48
by Squashman

Code: Select all

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

Re: How to create Folders list

Posted: 05 Feb 2016 16:07
by imgro0t
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