How to Create a Folder Using Command Prompt in Windows 11
Creating folders from the Command Prompt is faster than clicking through File Explorer, especially when you are already working in a terminal or need to make several folders at once. Windows 11 makes this straightforward YYGACOR with a single built-in command that works the same way it has for years.
The Command
mkdir MyFolder
What It Does
The `mkdir` command (short for “make directory”) creates a new folder with the name you specify. Running it as shown creates a folder called MyFolder inside whatever directory you are currently in. You can also use `md`, which does exactly the same thing and is simply a shorter alias. To create the folder somewhere specific, give a full path, such as `mkdir C:\Users\YourName\Documents\MyFolder`.
When You’d Use This
This is most useful when you are already working in the terminal and do not want to switch to File Explorer just to make a folder, or when a script needs to create folders as part of setting up a project structure. Developers setting up project directories, anyone organizing downloads into dated folders, and batch scripts that prepare a workspace all benefit from creating folders by command rather than by clicking.
Useful Variations
To create several folders at once, list them separated by spaces: `mkdir Folder1 Folder2 Folder3`. To create a nested structure where parent folders do not yet exist, Command Prompt’s `mkdir` handles this automatically, so `mkdir C:\Projects\2026\January` creates all three levels if needed. If a folder name contains spaces, wrap it in quotation marks, like `mkdir “My Documents”`.
If It Doesn’t Work
If the command reports “A subdirectory or file already exists,” a folder with that name is already there, so choose a different name or check the location. If you get an access-denied message, you likely lack permission to create folders in that location, such as a protected system directory, so try a folder inside your user profile or run the terminal as administrator for locations that require it.
Good to Know
If a folder with that name already exists in the same location, the command will report an error rather than overwriting it, so your existing files are safe. Make sure you are in the intended directory first, which you can check by looking at the path shown in the prompt.
Putting It Together
Once you have run it once or twice, this becomes second nature. As part of managing files from the terminal, this command earns its place once you are comfortable working without File Explorer. Combined with the others in this area, it lets you handle files in bulk and in scripts far faster than clicking through folders. Like anything in the terminal, the real value comes from trying it on your own system and adapting the variations above to what you actually need, so it is worth experimenting with in a safe, low-stakes situation before relying on it in a script or during troubleshooting. Keeping a note of the commands you find most useful, along with the variations that fit your workflow, turns scattered one-off tricks into a personal reference you can draw on whenever a similar task comes up again.