How to Create a Folder Using CMD in Windows - Step-by-Step

Reading time icon 3 min. read


Readers help support MSpoweruser. We may get a commission if you buy through our links. Tooltip Icon

Read our disclosure page to find out how can you help MSPoweruser sustain the editorial team Read more

cmd create folder

As someone who’s been using Windows for more than two decades, I’ve often found myself relying on the Command Prompt, or CMD, for various tasks. One such simple, yet needed, task is creating a new folder. It might seem straightforward to most, but for beginners, understanding how to use CMD to create a folder can be a lifesaver sometimes.

Let me share how it’s done.

How to Create a Folder using CMD in Windows

The Command Prompt is a command-line interpreter application available in most Windows operating systems. It’s a powerful tool that allows you to execute entered commands. Most of these commands are used to automate tasks via scripts and batch files, perform advanced administrative functions, and troubleshoot or solve certain kinds of Windows issues.

1. How to Open the Command Prompt

  1. Type cmd in the search bar.
  2. Click on the Command Prompt app to open it.

cmd in start menu

Tip: You can also access it by pressing Win + R, typing cmd, and then hitting Enter.

2. Finding the Desired Directory

Once you have the Command Prompt open, you need to navigate to the directory where you want to create the new folder. If you don’t know how to navigate directories in CMD, here’s how you do it:

  1. To view the contents of your current directory, type dir and press Enter.
  2. To change directories, use the cd command followed by the path to the desired directory. For example, cd Documents will move you to the Documents folder.

command prompt directories

3. How to Create a Folder with CMD

Now that you’re in the directory where you want your new folder to be:

  1. Type mkdirย followed by the name of the new folder. For example, mkdir NewFolder.
  2. Press Enter.

Creating a new folder with CMD

This command, mkdir (make directory), is used to create a new folder in your current directory.

4. Verify the Folder Creation

To ensure that your folder has been created:

  1. Type dir and press Enter.
  2. Look for your new folder in the displayed list.

verifying the new folder

Additional Tip

  • Multiple Folders: To create multiple folders at once, use the mkdir command followed by the names of the folders separated by spaces. For example, mkdir Folder1 Folder2 Folder3

making multiple folders using cmd

Creating a folder using CMD in Windows is a simple yet essential skill for anyone dealing with Windows PCs. Now you can easily organize your files and directories without leaving the Windows command prompt.

Related reads:

If you have any additional questions, please leave them in the comments below.

User forum

0 messages