Create a Folder Structure Template with One Command

Set up project directories instantly. Learn to create entire folder hierarchies with a single CMD command—perfect for developers and organized workflows.

Create a Folder Structure Template with One Command
On this page
  1. Introduction
  2. Basic Folder Creation
  3. Nested Folder Structure
  4. Ready-to-Use Templates
  5. FAQ

Introduction

TL;DR

Create multiple folders: mkdir src\components src\pages src\utils src\assets

Starting a new project? You probably need the same folder structure every time: src, components, assets, docs...

Instead of clicking through File Explorer, create your entire project skeleton with one command.

Basic Folder Creation

The mkdir (or md) command creates directories. You can create multiple at once.

Single Folder

Command Prompt
C:\Projects>mkdir my-new-project

Multiple Folders at Once

Command Prompt
C:\Projects\webapp>mkdir src docs tests assets config
📁 src
📁 docs
📁 tests
📁 assets
📁 config

Nested Folder Structure

Need nested folders? mkdir creates parent folders automatically.

Command Prompt
mkdir src\components\ui src\components\layout src\pages src\hooks src\utils
📁 src
  ├── 📁 components
  │   ├── 📁 ui
  │   └── 📁 layout
  ├── 📁 pages
  ├── 📁 hooks
  └── 📁 utils
Pro Tip

On Windows, use backslash \ for paths. In PowerShell, forward slash / also works.

Ready-to-Use Templates

Copy these commands immediately for common project types:

Project Folder Structure Tree
React/Next.js Project
mkdir src\components src\pages src\hooks src\utils src\styles src\assets public
Python Project
mkdir src tests docs data config scripts
Full-Stack Project
mkdir frontend\src backend\src backend\api database docs scripts deploy
Design/Assets Project
mkdir assets\images assets\icons assets\fonts exports source references

Frequently asked questions

Can I also create files with mkdir?

No, mkdir only creates folders. To create files, use: echo. > filename.txt (creates empty file) or type nul > filename.txt

What if the folder already exists?

Windows will show an error but continue creating the rest. In PowerShell, use -Force to suppress the error: New-Item -ItemType Directory -Force -Path folder1, folder2

How do I save this as a reusable script?

Create a .bat file with all your mkdir commands. Double-click it whenever you start a new project.

Can I create folders with spaces in the name?

Yes, wrap the name in quotes: mkdir "My Project" "Source Code" "Build Output"

Keep reading

Delete Empty Folders in Seconds Using CMDProductivity

Delete Empty Folders in Seconds Using CMD

Clean up your file system by removing hundreds of empty folders instantly. A simple one-line command does the trick—no software needed.

MD Kawsar· January 18, 2026 · 3 min read
Find Large Files Eating Your Disk Space with CMDProductivity

Find Large Files Eating Your Disk Space with CMD

Discover which files are hogging your storage. Learn CMD and PowerShell commands to quickly find the biggest files on your computer without third-party tools.

MD Kawsar· January 18, 2026 · 4 min read
Batch Rename Files with CMD: The Complete GuideProductivity

Batch Rename Files with CMD: The Complete Guide

Rename hundreds of files in seconds using Windows Command Prompt. Learn wildcards, patterns, and batch processing without installing any software.

MD Kawsar· January 18, 2026 · 5 min read

Want us to build this for you?

Tell us what data or workflow you need. We reply within a few hours.

Book a free call ↗