![]() |
|
|
#2 (permalink) |
|
Foundation Editor
Join Date: Apr 2008
Location: Planet Earth
Posts: 1,391
|
A good old batch file should do this for you. First save your list as a plain text file called namelist.txt with one name on each line, then take the following code save it in another text file and name it something like List2folder.bat Important!-- Make sure the txt extention is renamed to .bat (You should get a warning from Windows saying something like, the file may become unusable if you change the extention, which is fine change it anyway.)
Code:
@ echo off for /f %%f in (namelist.txt) do md %%f How this works is it reads each line from your list (i.e. /f ) adds the name in that line to the variable (%%f) then uses the md (make directory) command to make a folder with that name. Then repeats until it comes to the end of your list. Please let me know if you have any problems.
__________________
The smallest good deed is better than the greatest intention. |
|
|
|
|
|
#5 (permalink) |
|
Foundation Editor
Join Date: Apr 2008
Location: Planet Earth
Posts: 1,391
|
Duh!
I should have thought of that, since you said names. We need to set a "delimiter" to ignore spaces commas and such, then make sure the md command writes the variable as a "string" so we will add to the code. Changes are in red. Code:
@ echo off for /f "delims=" %%f in (namelist.txt) do md "%%f"
__________________
The smallest good deed is better than the greatest intention. |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|