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