Creating multiple folders fast.

Anonymous
2010-07-22T23:56:59+00:00

Document folders  (not outlook folders)

I would like to create mutliple folders (Several 100 thousand) each numerically named so that we can store customer documents by account number. These could be incrementally numbered but it would be preferable to number them from a supplied list of numbers. Is there away this can be done easily. We have windows 7 and want to create this folder structure on our network.

Windows for home | Previous Windows versions | Files, folders, and storage

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    2011-05-10T15:18:50+00:00

    first go to a number generator such as :

    http://textmechanic.com/Generate-List-of-Numbers.html

    generate the list of numbers you want as file names with a comma at the end of each number. Go into  the open tool menu and remove the line breaks of your list. So for example you will end up with a large list of numbers like "1222,1223,1224,1225,etc". Make sure the numbers are listed horizontially and not in a list (again use the page break tool).

    Next, open up your command prompt (click Start, point to All Programs, point to Accessories, and then click Command Prompt)

    Next we want to tell the command prompt where to put our new folders, so type in for example:

    cd /d c:\users\public

    and hit enter.

    Next we want to create the folders.

    Type: for %d in (PASTE NUMBERS HERE) do mkdir %d  

    Between the parenthesis where it says "PASTE NUMBERS HERE" we want to paste the numbers we generated from the list. Again make sure there is a comma between each number. So it should look like :

    for %d in (1222,1223,1224,1225) do mkdir %d 

    Hit enter and you should have the folders in the spot you specified earlier.

    It might sound a bit complicated but it's really pretty easy once you go through it once.

    Was this answer helpful?

    20+ people found this answer helpful.
    0 comments No comments