key in the below command and hitEnter.

Note: In place of YourDirectoryPath below, drop your specified destination path.

Step 3: after you grab reached the desired destination, bang out the below command and pressEnter.

Type the below command and hit enter

You have successfully created a single folder on your Windows computer using Command Prompt.

If you are looking to create multiple folders or subfolders, continue reading.

Create Multiple Folders or Subfolders

We will demonstrate how to create three folders at the same time.

Once you have reached the desired destination

Note: Replace NameofYourDirectory with the name of the folder.

For example, it can be Games, Document, and Movies.

Ensure you keep a gap between the folder (directory) names.

type the below command

You have successfully created a folder using the Windows Command Prompt.

Continue with the steps below to create a subdirectory using CMD.

Step 4: You know the name of the folders you created.

choose the folder you want subfolders in

Note:you might have multiple subfolders in a single folder.

However, be sure to leave a gap between the folder name (directory).

There you have it.

multiple subfolders in a single folder

The subfolders are created under the folder you want.

you’re able to repeat the above steps to create multiple subfolders in multiple folders.

Keep reading if you want to take it further and create a file in cmd.

Replace the filename with the name you want

An empty file will be created with the set extension for you to check and work on later.

If you want to make a file containing some text using cmd, continue reading.

Step 4: key in the text you want to put in the file.

type the below command and press Enter

If you are entering multiple lines, use the Enter key.

Step 5: PressCtrl + Zon your keyboard once you add text to the file and hitEnter.

If there is anything we have missed in the article, like refer to the FAQ section below.

use the Enter key

For example: rmdir /s /q C:\Users\YourUsername\Desktop\OldFolder

Both rmdir and rd are used to remove directories.

rmdir is the full command, while rd is a shorthand version of it.

you could use either command interchangeably.

Press ‘Ctrl + Z’ on your keyboard

If youve emptied the Recycle Bin, data recovery software may be necessary to attempt recovery.

Was this helpful?

The content remains unbiased and authentic and will never affect our editorial integrity.

Article image

Top Ways to Fix Command Prompt Keeps Popping Up in Windows 11

View Command Prompt History

Best CMD Tricks for Windows

Article image

Article image

How to Find the IP Address of a Domain Using NSLookup Command In Windows

Top 7 Fixes For ‘Not Recognized as an Internal or External Command’ Error in Windows 10 or 11