How to create folders in bulk from an Excel File

How to create folders in bulk from an Excel File

Today I'm gonna share a quick Windows tip which may save you a lot of time.


Article content

Our objective is to create an individual folder for each student listed. While manual creation is feasible for a short list, managing hundreds of entries may prove cumbersome.

Programs used:

  • Microsoft Excel
  • Notepad

Step 1: Add "MD" (Make Directory) to each name

As it is evident that manual input is impractical for this task., use the following formula to automate this process efficiently.

="MD "&A2

Then you can drag it down to apply it to all names.

Article content

Step 2: Paste column B into Notepad

Select Column B and hit Ctrl+C or Right click and click on Copy

Article content

Then Open Notepad via the search bar in your task bar (in newer versions of Windows)

Article content

Upon opening Notepad, simply hit Ctrl+V or Right click then "Paste" to paste the contents of Column B into Notepad.

Step 3: Save as a batch file

This step is short

Simply hit Ctrl+S or File- Save (or Save As)

Article content
Save as a batch file

In this case I will name the file "students" and the file extension you need to use is .bat

To avoid overcomplicating things, all you need to do is add a dot bat at the end of the name "students.bat"

Step 4: Run the Bat file

Article content

Click on the ".bat" file and wait for a second.

You now have a folder for each student.


Mission Accomplished. (This could work if you have hundreds or even thousands of entries)



Follow for more

Billy Marshall

Senior Application Engineer at Calnex Solutions

12mo

Great idea, thanks. Note if you want spaces in the folder names use: ="MD """&A2&""""

Yu Jiang

PhD student in Environmental Sciences | Marine Sciences | Ecology | Microbiology | Bioinformatics | Genetics & Omics

1y

Saved my life literally

To view or add a comment, sign in

More articles by Mohamed Eassa

Insights from the community

Others also viewed

Explore topics