TechRepublic : A ZDNet Tech Community

Quickly create multiple folders from the command prompt in Windows XP

Tags: Greg Shultz, multiple folder, Microsoft Windows XP, Microsoft Windows, Windows XP Tips Newsletter

  • Save
  • Print
  • Recommend
  • 6

Takeaway: Learn to use the Make A New Folder Command to save some time.

Stay on top of the latest XP tips and tricks with our free Windows XP newsletter, delivered each Thursday. Automatically sign up today!

It's a snap to create a new folder in Windows Explorer--especially if you use the Make A New Folder command in the File And Folder Tasks section of the Explorer Bar. However, if you need to create multiple folders at one time, such as when you're setting up home directories for new users, this procedure can quickly become very tedious.

Fortunately, the Make Directory command line tool has an undocumented feature that will allow you to create multiple folders in one fell swoop. For example, suppose that you need to create folders called One, Two, and Three. To do so with the Make Directory command line tool, open a Command Prompt in the folder in which you need to create these folders and type the command:

MD One Two Three

  • Save
  • Print
  • Recommend
  • 6

Print/View all Posts Comments on this article

More.. alpsinoz | 03/06/05
Or create a branch of a directory tree... jruby | 07/07/05
Make multi folders in a single command kenjackj@... | 09/10/05
Remove Directory (RD) rhorne@... | 09/29/05
command line ericl_w19@... | 03/13/06
subfolders Jessica Lynn | 10/02/06
subfolders Jessica Lynn | 10/02/06
Subfolders webrambler@... | 05/03/07
DOS lives! muncdinv@... | 04/05/05
yes, yes!!! paclady | 05/25/05
Not DOS matt_o | 06/10/05
You said it! altcomp@... | 06/14/05
Open a Command Prompt in a Folder? Nature Lover | 09/01/05
powertoy cmd jstephens@... | 09/08/05
Thank You Nature Lover | 09/09/05
Command Prompt ina Folder stevemedley@... | 09/13/05
null nconstant@... | 01/05/06
null nconstant@... | 01/05/06
MD doesn't take input from a file selasieye@... | 03/09/06
Help! command/y/c - where are you? jedtimmer | 08/10/06
Use CMD instead ... or try FOR /F MerchantBanker | 08/17/06
Didnt work for me Davyburnswork@... | 01/11/08
MAKING DIRECTORY omastrustnigent@... | 08/31/06
rd - strange error vitas.lowang@... | 11/29/07

What do you think?

White Papers, Webcasts, and Downloads

Article Categories

Security
Security Solutions, IT Locksmith
Networking and Communications
E-mail Administration NetNote, Cisco Routers and Switches
CIO and IT Management
Project Management, CIO Issues, Strategies that Scale
Desktops, Laptops & OS
Windows 2000 Professional, Microsoft Word, Microsoft Excel, Microsoft Access, Windows XP,
Data Management
Oracle, SQL Server
Servers
Windows NT, Linux NetNote, Windows Server 2003
Career Development
Geek Trivia
Software/Web Development
Web Development Zone, Visual Basic, .NET

SmartPlanet

Click Here