How to copy an entire folder structure without copying the files (tip for starting the new financial year)

Here’s my tip to start the financial year off with some organisation. If you save your important files in a folder structure per financial year, then you will be ready to create that new folder for the new tax year. To save time and keep your filing structure consistent you can quickly copy the entire structure (including all subfolders) with the following technique. Using this technique, only the folder structure is copied (not the actual files). So you will be up and going with your new folder structure for the tax year and continue filing.

Here’s a simplified version of what my filing structure looks like:


Now simply create your new folder (under which you want to duplicate the folder structure)


Now open a Windows command window and run the following command. It’s the /T option that copies just the folder structure not the files. You can also use the /E option to include  empty folders in the copy (by default empty folders will not be copied).

xcopy “c:\users\cdwyer\documents\2012-2013” “c:\users\cdwyer\documents\2013-2014” /T /E


Job done, you should now see your copied folder structure ready to start filing into for the new year.


About Cameron Dwyer

Chief Technology Officer at OnePlace Solutions. Microsoft MVP: Office Dev Passionate about delivering compelling solutions on the Office 365/SharePoint platform. Addicted to coffee.

Posted on July 5, 2013, in Uncategorized and tagged , , , . Bookmark the permalink. 10 Comments.

  1. Thanks Cameron for the info! Do you know if this method will work for folders stored in Office 365 SharePoint 2013? If not, do you have any suggestions for copying a folder structure without the files in SharePoint 2013? Thanks!


  2. Akhilesh Kumar

    Wow! Great, this worked like a cham, duplicate the 2017 folders for 2018!

    Liked by 1 person

  3. Regally, Great work.. Thanks a lot

    Liked by 1 person

  4. hello.. can anyone tell me why I am getting the invalid parameter error message?
    xcopy “T:\2 – FORECAST\2018\June Forecast” “T:\2 – FORECAST\2018\September Forecast” /T


  5. xcopy f\folder\*.* g:\folder\*.* /t /e

    For me, this is also copying the files. 😦


  6. Worked great! Thanks!


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: