How To Create Folders From CMD In Windows [Tested Methods]

Written By Steven Arends

May you want to learn a more straightforward way to create multiple folders at once using the cmd? You are in the right place, then.

As a tech specialist and enthusiast, I will teach you a more straightforward way to create multiple folders at once within a few seconds. Sounds great, right?

Keep reading the whole post and precisely follow the instructions.

how-to-create-folders-from-cmd-in-windows-tested-methods

So, let’s dive into the main topic without losing valuable time.

Check our latest post on the how PC won’t go to sleep mode in Windows 11.

What Is Command Prompt (CMD)?

CMD is essentially a command-line interface for your Windows machine. It’s a great tool on the Windows system. CMD makes it easy to do some operations, such as creating directories or folders.

It’s a widespread misperception that programmers and computer experts exclusively use CMD. Despite introducing the user interface and other input methods, CMD is a tool that you should not ignore. It is a command-line interface for Windows that few people are familiar with.

There are many valuable things you can do by using cmd on your Windows computer. You can use some useful commands to create, navigate and view directories, folders, subfolders, and so many things.

Follow our guide to fixing Failed to play test tone Error on Windows 7,8,10.

How To Create Folders From CMD In Windows

If you want to create or add a folder, subfolder, directory, or subdirectory on your computer, you can do it in several ways. The procedures to create folders, directories are varied on the operating system or the location of the directory.

When you want to organize and manage data or files on your Windows computer, manually establishing new folders and subfolders is time-consuming. Instead, you can use the Command Prompt to make numerous folders and directories within a few seconds and save your time.

Generally, you create a new folder or many folders by right-clicking on your mouse and selecting New folder. Also, you can create a new folder by pressing the shortcut button Ctrl+Shift+N on your keyboard.

These all methods are more time-consuming and hassle when you need to create more folders at a time. To solve this hassle and save your time, you can use the command prompt to create folders easily at once within a few seconds.

But, before that, do check our latest post on the Show Folder Size in Windows 11.

Here in this section, you will learn the way you create folders using the Command Prompt. So, let’s get started.

Here are the steps to create folders using the Command Prompt (CMD) in Windows:

1. Create A Single Folder

You can create a single folder by using Command Prompt (CMD).

Follow these steps to create a single folder:

  • Click on the Windows Start icon on the bottom-left side of the screen to open Start Menu. Or,
  • Press Windows Key on your keyboard to open Start Menu. Or,
  • Click on the Windows Search bar or box at the taskbar or press Windows Key + S on your keyboard to open the Windows Search bar.
  • Type cmd or Command Prompt.
  • Click on search result to open Command Prompt.
  • Go to a location like desktop or any drive where you want to create the new folder. By default, your cmd will open to C:\Users\YourName (Here, you can see your username) path. 
  • Go to any location on the current drive, type cd YourDirectoryPath and press the Enter button. You just need to replace the path with the direction location you want.

For example, If you want to create a folder on the desktop, type C:\Users\M John> cd desktop and press the Enter button. You don’t need to put any colon or semicolon symbol at the end of the command.

  •  Select a drive on your computer, type the drive name with the colon (:) symbol, and hit the Enter button.
  • For example, C:\Users\M John> G: or C:\Users\M John> F: In this example, I want to create a folder into my computer’s G or F drive.
  • Type mkdir NameOfYourDirectory on the cmd and hit the Enter button to create a new folder. You just replace the name of the folder you want.

For example, C:\Users\M John>  mkdir Games or, C:\Users\M John> mkdir Movies

Now, you successfully create a single folder on your Windows computer using the command prompt.

Have some time to spare? Check out our latest fix for Windows Audio Device Graph Isolation High CPU.

2. Create Multiple Folders Or Subfolders

Using Command Prompt (CMD), you can also create multiple folders or subfolders. Creating multiple folders or subfolders is simple rather than right-clicking on your mouse.

Follow the steps below to create multiple folders:

  • Click on the Windows Search bar or box at the taskbar or press Windows Key + S on your keyboard to open the Windows Search bar.
  • Type cmd and click on the search result to open Command Prompt.
  • Go to a location like desktop or any drive where you want to create the new multiple folders.
  • Type mkdir  directory1 directory2 directory3  and hit the Enter button to create multiple folders. You must put space between all of your folders when you enter the names.

For example, I want to create five folders like Movies, Games, Audio, Videos, And Software. So, the command is mkdir Movies Games Audios Videos Software.

  •  Navigate your folders using the traditional way that you just created.

If you want to create multiple subfolders, follow the steps below:

  • Navigate the folder you created earlier or the existing folder if you want to create multiple subfolders.
  • Type md  directory1 directory2 directory3  and hit the Enter button to create multiple subfolders. You must put space between all of your folders when you enter the names.

For example, I want to create five subfolders like Movies, Games, Audio, Videos, And Software. So, the command is md Movies Games Audios Videos Software.

  •   Navigate your subfolders using the traditional way that you just created.

Also, check out our separate post on the best World of Warcraft gaming laptop.

How To Navigate To A Folder In CMD

You always use the traditional way to navigate a folder on your computer. But, you can navigate to a folder using cmd in your computer faster and easier. This section will teach you the way to navigate to a folder in the Command Prompt.

So,

How do I navigate to a folder in cmd?

Here are the steps to navigate to a folder in cmd: 

  1. Press Windows Key + S on your keyboard or click on the Windows Search box at the taskbar to open the Windows Search bar.
  2. Type cmd or Command Prompt.
  3. Click on search result to open Command Prompt.
  4. Type cd NameOfYourDirectory and press the Enter button to navigate the folder you create. Replace NameOfYourDirectory with the folder name that you create or exist.

For example, you have created a folder called MyGames. So, the command is cd MyGames. Another example is cd MyMovies. In this example, the folder name is MyMovies.

Check out our separate post on disable SuperFetch in Windows 11.

How To Create A File Using CMD In Windows

In CMD, you can create two types of files: an empty file and a file containing some text. This section will teach you how to create an empty file or contain some text file in the Command Prompt.

Check out our expert-recommended error fixing, Microsoft Teams Error Code 42B.

Here are the steps to create a file using cmd in Windows:

1. Create An Empty File

Follow these steps to create an empty file:

  1. Press Windows Key on your keyboard to open Start Menu. Or,
  2. Click on the Windows Start icon on the bottom-left side of the screen to open Start Menu. Or,
  3. Click on the Windows Search bar or box at the taskbar or press Windows Key + S on your keyboard to open the Windows Search bar.
  4. Type cmd and click on the search result to open Command Prompt.
  5. Select a location like desktop or any drive where you want to create a new file. 
  6. Enter type nul > filename.FileExtensions command and hit the Enter button to create a new empty file. Replace filename.FileExtensions with the file name that you want. The .FileExtensions indicates that these are the file extensions such as .txt, .docx, Replace .FileExtensions with the file type or category file you want to create.

For example, I want to create a MyDocument.txt file. So, the command is type nul > MyDocument.txt

In a hurry? Check out my new post on Switch Domain Controller On Windows.

2. Create A File Containing Some Text

If you want to create a file containing some text, follow the steps below:

  1. Enter copy con filename.FileExtensions command and hit the Enter button to create a new file with some text. Replace filename.FileExtensions with the file name that you want.
  2. Enter some text that you want to put in your file. If you wish to write multiple lines, use the Enter key.

For example, 

C:\Users\M John> cd desktop 

C:\Users\M John>Desktop copy con MyDocument.txt

It is a text file called MyDocument and is created in the command prompt.

3. Press Ctrl + Z on your keyboard when you have done your writing or editing.

4. Hit the Enter button.

Now, you have successfully created a new file containing some text or information.

Check out the easiest way to Create RDP Shortcut Icon on Windows 10.

Final Thoughts

Command Prompt (CMD) is a powerful tool used to do some practical and valuable work. You can enter some useful commands in cmd to create, enter or delete directories, folders, or files. Also, you can do more powerful work in cmd.

This post describes how you create single or multiple folders within a few seconds that save you more time than the traditional way. I also describe how you navigate to a folder in cmd and create different types of files.

I hope you find this post is helping you. Feel free to share your knowledge with your friends, families, and colleagues, whatever you want.

Leave a Comment