Question
64366 views

How or can i create numerous new folders instaed of doing it one at a time?

Gurney Skiffen asked on

original title: Create multiple new folders

How or can i create numerous new folders instaed of doing it one at a time?

25 people had this question

Abuse history


The answered status icon Answer
Steve Winograd replied on
How many folders, where do you want to create them, and what do you want to call them?

You can create a group of folders by entering commands in a command prompt window.  For example, to create a folder for each day of the week in C:\Users\Public:

   cd /d c:\users\public
   for %d in (Mon, Tue, Wed, Thu, Fri, Sat, Sun) do mkdir %d
  
Boulder Computer Maven
Microsoft Most Valuable Professional
Steve Winograd
36 people found this helpful

Abuse history


Most Helpful Reply
TechHead74 replied on

Hi everyone! So I did find an answer to my question. I used the format that Steve provided for a while until I recently found a much better and easier way to do this. Below is an example. You can change it for your own purposes later.

 

1.) Create a root folder in which you want your other folders to appear.

2.) Open Notepad.

3.) Save your blank Notepad document as dir.bat.  Exactly like that (minus the period at the end of bat, of course).

4.) Within the dir.bat document, write the following:

 

md test1

md test2

md test3

md C:\Users\janedoe\Desktop

 

5.) Save and then close the dir.bat file.

6.) Go to Start -> Run.

7.) From the Run screen, browse for the dir.bat file and select open. In this example I would find it at C:\Users\janedoe\Desktop.

8.) Select OK. A command window may flash on the screen momentarily. That's okay.

9.) Go to the C:\Users\janedoe\Desktop. Your newly created files will be there.

 

Notes:

- you can replace the test1 files with the names of the files you want to create

- to create file names with spaces put them in quotation marks. For example "md test 4"

- if your file folder has a name with spaces in it, put quotation marks around it. For example, md "C:\Users\jane doe\Desktop"

- to create a sub folder put a slash there. For example, md test3/graphics.

- double clicking the file is the same as running the file. If you want to edit the file right click the file and select edit.

 

Good luck!

 

 

 

 

 

 

 

61 people found this helpful

Abuse history


progress