Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Have multiple-level folder trees with folders that have files and subfolders, other folders without files but with subfolders. I'd like to copy to a destination but not copy the folders lacking files, copying only the folders with files. Thus:


is copied to


Stated another way, my goal is to rid my system of folders that lack files but keep any subfolders so long as a subfolder itself has a file or a subfolder.

Has me stumped.

share|improve this question

@Pohokano I believe all you need to do is include the /S copy option which says in the /? "Copy sub directories, but not empty ones." That should get you squared away if I am understanding your issue and the option correctly. Please let me know if I am right as I have never done that before.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .