Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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:

[source]\no_files1\files1\no_files2\no_files3\files2\no_files4\files3

is copied to

[destination]\files1\files2\files3

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

1 Answer 1

@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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.