Need to have an automatic way of creating new folders in Windows

I have a list of names in a text file that I need to create folders for. The list is over 1000 names long so that is over 1000 folders in Windows that needs to be created.  By hand that will take hours to do.  If I could create a batch file or a script that would read the list and create the folders based on the list.  The folders need to all be in the same root, so that makes it a bit easier.  The list is a plain text file with each name on a seperate line.  Here is an example...


Also, if someone knows of a program that does this automatically, that will be okay.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Lee W, MVPTechnology and Business Process AdvisorCommented:
No script needed, just run this command:

FOR /F "tokens=*" %a in (listofnames.txt) do MD %a
Also VB script:

Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.OpenTextFile("C:\temp\filename.txt", 1)
Do Until objFile.AtEndOfStream
    strCharacters = objFile.ReadLine
    objFSO.createfolder strCharacters

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
murrycAuthor Commented:
leew...Should I not be able to run your command from a batch file?  I tried it and could not get it to work.

star_trek...your VBS script worked like a champ.  I have a few changes I need to make to the script.  Do you want me to post a new question since this one was answered fully?
If the solution works for you, you need accept the answer. Then you can post a new question.
Lee W, MVPTechnology and Business Process AdvisorCommented:
No you can't run that command from a batch file.  I said no script needed - it's a simple command.

If you want to run the command from a batch file, then you need to double the percent signs.

FOR /F "tokens=*" %%a in (listofnames.txt) do MD %%a
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows 2000

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.