Share via

Copying just folder names - no content

Anonymous
2015-01-07T20:03:58+00:00

Is there a way to copy just the folder names in a folder, but not the contents of each folder?

Windows for home | Previous Windows versions | Files, folders, and storage

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
Answer accepted by question author
  1. Anonymous
    2015-01-08T02:43:33+00:00

    Other answerer s are assuming that by copy you mean to save or print a list of the folders.  If you do in fact want to copy a folder tree without files, it can be done using Xcopy with the /T switch

     /T           Creates directory structure, but does not copy files. Does not

                  include empty directories or subdirectories. /T /E includes

                  empty directories and subdirectories.

    70+ people found this answer helpful.
    0 comments No comments

7 additional answers

Sort by: Most helpful
  1. Anonymous
    2016-07-16T12:09:16+00:00

    Your assumption on what I'm trying to do is correct. Your suggestion makes sense to me and I think it's exactly what I'm looking for, but it's a DOS command, correct? How do I execute it? Do I go outside of Windows with that CMD command? Will Windows then recognize the directory structure I just created?

    9 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2017-08-25T02:18:09+00:00

    Try program "treecopy"

    3 people found this answer helpful.
    0 comments No comments
  3. Anonymous
    2016-07-16T16:00:11+00:00

    I'm setting up/moving to a new computer. I want to replicate that file structure on my new computer that I had on my old computer. How would I use this command to accomplish that? Specifically, I need to get the results on the new computer.

    2 people found this answer helpful.
    0 comments No comments
  4. Anonymous
    2016-07-16T15:13:34+00:00

    Use a Windows command prompt.  You can run cmd.exe or open a command prompt from Accessories. 

    Note technically this is Not DOS which doesn't exist in modern versions of Windows.  However, the syntax of many DOS commands is also used by the Windows Command Processor.

    1 person found this answer helpful.
    0 comments No comments