• Skip to main content
  • Skip to primary sidebar

Technipages

Tutorials and fixes for smartphone, gadget, and computer problems

  • Topics
    • Android
    • Browsers
    • Gaming
    • Hardware
    • Internet
    • iPhone
    • Linux
    • macOS
    • Office
    • Reviews
    • Software
    • Windows
    • Definitions
  • Product Reviews
  • Downloads
  • About
Windows: Create Folders From Command Line

Windows: Create Folders From Command Line

August 13, 2019 by Mitch Bartlett 10 Comments

The command line is still a powerful thing to use in Microsoft Windows. You may need to learn how to create a directory from the command line if you’re writing a script, or want a simpler way to create multiple folders. Here’s how it’s done.

  1. Select the “Start” button,type cmd then choose “Command Prompt” in the list that appears.
    Open Command Prompt Windows
  2. To switch to another drive, simply type the drive letter followed by a colon, then press “Enter“.
  3. To switch to another directory, type cd followed by the path to the directory, then press “Enter“.
  4. Type mkdir followed by the name of the folder you wish to create, then press “Enter“.
    Example:mkdir mynewfolder

    Creating Folders From CMD
    Example showing switching to the G drive, then to the test folder and the creation of a folder called “mynewfolder”.

Creating multiple folders is easier from the command line. You can type mkdir followed by the names of each folder, separated by a space to do this.

mkdir mynewfolder1 mynewfolder2 testfolder1

Note: Alternately, you can use the md command in place of mkdir. They do the same thing.

You Might Also Like

  • Windows: Clear Java Web Cache Via Command Line
    Windows: Clear Java Web Cache Via Command Line
  • Windows 10 Import/Export Registry Keys From Command Line
    Windows 10 Import/Export Registry Keys From Command Line
  • Windows: Create Command Prompt That Opens To Specific Folder Location
    Windows: Create Command Prompt That Opens To Specific Folder…
  • What Is a Command Line Interpreter?
    What Is a Command Line Interpreter?
  • How to Create, Delete, and Manage Folders on Dropbox
    How to Create, Delete, and Manage Folders on Dropbox
  • How To Colorize Folders in Windows 10
    How To Colorize Folders in Windows 10

Filed Under: Windows Tagged With: Windows 10

Reader Interactions

Comments

  1. Allen says

    November 30, 2022 at 10:45 am

    Thank you! You saved my bacon.

  2. Matthew Smith says

    June 1, 2022 at 6:41 am

    This is an excellent guide and saved me significant time, effort and frustration. TY!

  3. piwai hove says

    February 15, 2022 at 6:40 am

    thank you for the simple and clear tutorial

  4. Wesley Kevins IMBU says

    March 28, 2021 at 5:45 pm

    Really helpful!
    thank you so much.

  5. hp llaptop says

    November 12, 2020 at 8:49 am

    hi , when i do this the folder doesnt show in my desktop but in my local disk drive.

  6. Daniel says

    September 6, 2020 at 6:10 am

    thanks for simple and usefull tutorial

  7. Michael h Noel says

    June 29, 2020 at 6:12 pm

    Thank you so much. Bless

  8. Geogina Launeka says

    June 16, 2020 at 6:08 pm

    Thanks a lot. This answered my question.

  9. Sylvester says

    May 14, 2020 at 10:14 pm

    That was very useful. Thank you!

  10. David Callaway says

    November 18, 2019 at 4:36 am

    This answered my question precisely. Thank you.

Did this help? Let us know!

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Recent Posts

  • How to Make a Drop-Down List in Excel: 2 Best Methods in 2023
  • Can You Mix RAM Brands: A Guide for RAM Mix and Match
  • Google Photos: How to Recover Erased Pictures
  • New Galaxy S23: Full Specs, Features, and More
  • How to Block Calls on Android
  • Mimecast for Outlook: Everything You Need to Know
  • What Is PoE?
  • Excel Calendar Template 2023: The 9 Best Sources You Must Know

Who’s Behind Technipages?

Baby and Daddy My name is Mitch Bartlett. I've been working in technology for over 20 years in a wide range of tech jobs from Tech Support to Software Testing. I started this site as a technical guide for myself and it has grown into what I hope is a useful reference for all.

You May Also Like

  • Windows 95/98
  • Microsoft Windows NT
  • Microsoft Windows
  • Microsoft Windows 95
  • Windows Media Player (WMP)
  • Top 8 Itunes Alternatives for Windows

© Copyright 2023 Guiding Tech Media · All Rights Reserved · Privacy