pop in the below command and hitEnter.

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

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

Type the below command and hit enter

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.

Note: Replace NameofYourDirectory with the name of the folder.

Once you have reached the desired destination

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

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

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

type the below command

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

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

Note:you’re able to have multiple subfolders in a single folder.

choose the folder you want subfolders in

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

There you have it.

The subfolders are created under the folder you want.

multiple subfolders in a single folder

you could 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.

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

Replace the filename with the name you want

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.

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

type the below command and press Enter

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.

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

Both rmdir and rd are used to remove directories.

use the Enter key

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

you’ve got the option to use either command interchangeably.

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

Press ‘Ctrl + Z’ on your keyboard

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