Tom's Hardware > Forum > Applications > Other Software > How to create folders with numerical names 1-x

How to create folders with numerical names 1-x

Forum Applications : Other Software - How to create folders with numerical names 1-x

Tom's Hardware: Over 1.4 million members in 6 different countries available to answer all your high-tech questions. Sign up now! Its free!
Word :    Username :           
 

First, Hello to everyone!

I just signed up to THG, and I'm not sure why it took me this long. I have been a fan of the site since its inception.

My boss just walked into the office and asked me how he could create 200 folders and have them named 1-200. So here is what I did...

Open a blank Excel worksheet.
In Cell 1 of column A type md c:\folder\1
Hit the enter key and you will be dropped down to the next cell. single click on the Cell 1 of column A and you will notice a little black square on the bottom right of that cell. click and hold then drag that down to cell 200 within column A, then release your mouse.
Look in the cells and you should see that the data in the cells has gone from
md c:\folder\1
md c:\folder\2
md c:\folder\3
all the way to 200

Now make sure all those cells are highlighted and copy them.

Click start, run and type notepad
paste your data into the notepad document and then save it as MakeFolders.bat Windows will warn you about the file name change, just accept it.

Before you run the new batch file, check the root of C to make sure you don't have a existing folder named "folder"

That's pretty much it.

Note:You can tweak the paths in the batch file as needed.

I hope this helps somebody out.

If you want to create folders with user names then check out my next post how to batch create folders users names


Message edited by ntadmin101 on 11-13-2009 at 05:34:42 PM
Sponsored Links
Register or log in to remove.

Again, thanks for sharing! :)

------------------------------ Desktop | E7300 | P5KPL-AM | 2GB DDR2 667MHz | NVIDIA 9500 GT | ST3320613AS | w2228h
XPS M1330 | T8300 | Dell 0U8042 | 2GB DDR2 800MHz | NVIDIA 8400M GS | WD2500BEVS-75US | 1280 x 800
Reply to r_manic
Tom's Hardware > Forum > Applications > Other Software > How to create folders with numerical names 1-x
Go to:

There are 679 identified and unidentified users. To see the list of identified users, Click here.

Sponsored links
  • Ask the community now
  • Publish
Ad
They won a badge
Join us in greeting them