How to Copy a Folder Structure Without Files

You can recreate a folder hierarchy in a new location without transferring the files inside it. Use a folder-only copy method, then check the destination before relying on it.

A blue diagram shows a folder category branching into several sub-category folders.
In this article

You can copy a folder structure without files by using a Windows command-line folder-only option to recreate the source folders and subfolders in a destination. The files stay behind, leaving you with the same tree of folders and no copied contents. You may also find this useful: How to Copy Folder Structure With Files in Windows.

This is useful when you want a clean starting point rather than a duplicate full of last year’s documents. For example, you could make a fresh annual folder template or set up a project with the same planned subfolders as an earlier one. A command-line approach is practical for this task, but the source and destination must be correct: choosing the wrong paths can put the new tree somewhere unexpected or use the wrong folder as its pattern. You’ll see how to direct the operation carefully, then check that the destination has the folder layout you intended.

Which method should you use?

A command-line method is a good fit when you need to reproduce a folder tree repeatedly or when it contains many nested folders. It saves you from manually rebuilding each branch, such as recreating a set of department folders and their subfolders for a new location. [1]

Open a Windows command window and use `xcopy` with the /T option, which copies just the folder structure and not the files.[1] If you prefer a graphical workflow, a specialist utility such as ViceVersa is an alternative for copying a folder structure without its files. [2]

Choose the method based on what you want at the destination: this task copies the folder hierarchy only, while copying folders with their files is a different operation. [1] For example, if you want the same nested folder names but not documents or spreadsheets, use the folder-only approach; if you need those contents too, use a method intended to copy files as well. Related reading: Robocopy: Copy Folder Structure Only, Not Files.

A person reviews folder options on a laptop with a notebook nearby while deciding which copying method to use.

Copy the folder hierarchy to a new location

  1. Identify the exact source folder whose hierarchy you want to reproduce, then choose a separate destination folder. For example, if the source is C:\Work\Project, you might use D:\Templates\Project as the destination. Keeping the destination separate makes it easier to see where the new tree will be created.

  2. Open Command Prompt, then enter this command, replacing the labeled placeholders with your actual paths:

    xcopy "<SOURCE_PATH>" "<DESTINATION_PATH>" /T /E
    

    Replace <SOURCE_PATH> with the full path to the folder you identified, and <DESTINATION_PATH> with the full path for the new location. Keep the quotation marks when a path contains spaces, such as "C:\Users\Alex\Work Files". The /T option copies the folder structure without copying the files, and /E includes empty folders as well; without it, folders that hold no files are left out. [1]

  3. Before pressing Enter, review both paths carefully. Make sure the source names the intended folder and the destination points to the separate location you chose; adapt the placeholders to match your own folders rather than running the example paths unchanged. When the paths look right, run the command.

A laptop screen shows empty nested folders recreated in a new location, preserving the original hierarchy.

Verify the destination before using it

Open the destination in File Explorer and compare its nested folder names with the source to check that the tree was recreated in the right place. The destination should have the same hierarchy of folders and subfolders, but not the original files.

Check the folder tree

Open the source and destination in separate File Explorer windows so you can compare them side by side. Start with the top-level folders, then open a few branches and check that their subfolders appear in the same order and at the same levels.

Look for missing folders and for anything created outside the destination you intended. If the destination is missing a branch or is in the wrong place, correct the source or destination paths and rerun the process. Then reopen the destination and check the affected folders again before you use the new tree.

When an empty folder tree is useful

An empty folder tree is useful when you want a ready-made layout without bringing old files along. For example, you can recreate folders for a new financial year, then add that year’s documents as you go.[1][3]

It also helps when you reuse the same project layout. If each project needs folders such as Planning, Drafts, and Final, a clean copy gives you the same starting structure without leftover files from another project.

If you need the existing files as well as the folder hierarchy, choose a method designed to copy both. That is a different task from making empty folders; see the focused topic on copying a folder structure with files.

Copy a folder structure without files

The table shows how to create and check a folder-only copy using the command-line approach.

Step

What to do

What it means

Choose paths

Identify the source folder and a separate destination.

Sets the tree to reproduce and where it will go.

Enter the command

Use xcopy "<SOURCE_PATH>" "<DESTINATION_PATH>" /T /E in Command Prompt.

The /T option copies the folder structure without files; /E includes empty folders too.

Review paths

Check that both paths name the intended folders before running the command.

Helps avoid using the wrong source or destination.

Verify the result

Compare nested folders in File Explorer.

Check that the hierarchy is present in the intended location and has no original files.

Frequently Asked Questions

How do I copy a folder structure without copying its files in Windows?

Open Command Prompt and run xcopy "<SOURCE_PATH>" "<DESTINATION_PATH>" /T /E, replacing the placeholders with the full paths to your source and destination folders. The /T option recreates the folder hierarchy without copying files, and /E includes empty folders; without /E, folders that contain no files are skipped. Review both paths before running the command, then inspect the destination in File Explorer.

What should I check before running the folder-only copy command?

Check that the source path names the folder whose hierarchy you want to reproduce and that the destination path points to a separate location. Replace the placeholders with your actual paths rather than using the examples unchanged. Keep quotation marks around paths that contain spaces, then review both paths before pressing Enter.

How can I check that the folder structure copied correctly?

Open the source and destination in separate File Explorer windows and compare their folder names side by side. Check the top-level folders, then inspect a few branches to confirm that subfolders appear at the same levels. Look for missing folders or anything created outside the intended destination, and correct the paths and rerun the command if needed.

Can I use this method to copy the files along with the folders?

No. The /T /E options are for copying the folder structure without its files, so the destination contains the hierarchy but not the original documents or spreadsheets. If you need the existing files as well as the folders, choose a method designed to copy both; that is a different operation.

Use the folder-only approach for a clean template

A folder-only command gives you a clean template by recreating the directory hierarchy without carrying over the files. The /T /E options are the part of the command that copy the folder structure, empty folders included, rather than the files themselves.[1]

Before you use the new tree, check that the source and destination paths point to the folders you intended. Then open the destination and inspect its nested folders—for example, confirm that a Reports\2025\Drafts path appears where you expect it. If the result is missing a branch or sits in the wrong location, correct the paths and run the command again. This quick check helps you start with a usable folder template rather than discovering a misplaced or incomplete tree later.

Sources

  1. How to copy an entire folder structure without copying the files …

  2. How To Copy / Replicate Just the Folder Structure Without …

  3. Copy folder structure without contents