Batch file to create multiple folders
Posted on 2005-05-12
My company is in the process of restructuring our directory and I need to put together a batch file to create a bunch of folders. The idea is to match these new folders to the customer numbers in our database but use six digit numbers for the folder names. (i.e.-004532)
On top of that, to make it easier to find the folder we are looking for, we want to separate them into folders containing 500 folders each. So within a "root" directory we would have a folder "1-500" and within it would have folders "000001", "000001", "000002", etc. and continuing with folders "501-1000", "1001-1500", and so on.
We are looking at about 8,000 customers as of now with more to come in the future so you could imagine that it would be a real pain in the butt to create each folder individually. Certainly, a batch file to automate the process would make my life much easier.
Any help would be greatly appreciated.