How to Copy Folder Structure without Copying Files in Windows 10
You may have a complicated folder structure that includes many folder and subfolder hierarchy with plenty of files saved in those folders. Now you need to re-create the same folder hierarchy on a different partition, drive, or network location.
So, you are interested in learning if there is a way to replicate the existing folder structure in a different location without copying the files. Here’s what you can do.
First of all, you can use xcopy, the built-in command available in many Windows versions, including Windows 10.
Xcopy stands for ‘extended copy’ is a command line utility that can copy multiple files or directories from the source path to the other destination directory. It supports a special switch /t, which will allow you to replicate the same structure in the destination without copying the files. The only issue is that it will ignore empty folders. To solve it, you need to combine it with another switch /e.
To Copy Folder Structure without Copying Files in Windows 10,
- Open a Command Prompt.
xcopy "source" "destination" /t /e.
sourcewith the path that contains your current folder hierarchy with files.
destinationwith the path that will store the empty folder hierarchy(the new one).
xcopy "C:\Folder" "D:\Folder" /t /e
^It will duplicate the C:\Folder structure in D:\Folder.
An alternative solution is a third-party app XXCopy.
XXCOPY is a third-party command line tool. You could consider it as an extended version of XCopy which supports 230 command line arguments! It supports all modern Windows version, including 32-bit and 64-bit of Windows 10.
XXCOPY works great when you need to copy the folder structure with a hierarchy level limit. For instance, you can copy the first 3 levels of your folder structure by using switch /DL<n>.
Also, XXCOPY can duplicate your folder hierarchy with file system permissions. This great option allows saving hours of work for large subfolder structures.
XXCOPY has a freeware package which is free for personal use.
9 thoughts on “Copy Folder Structure without Copying Files in Windows 10”
Thank you so very much
You are welcome.
doesnt work, gives error “invalid parameters”
What exactly doesn’t work for you?
It was very useful for me. Thanks ♥♥♥
Hi – You are missing quote in the xcopy example FYI
Yes! This is what I was missing when I received the Invalid Parameters error.
This way worked: xcopy “C:\Folder” “D:\Folder” /t /e
Wow works well , saved me atleast 30 minutes of time
Thank you so much
Try Gs Richcopy 360 or Freefilesync are easy for this case like your simple way