Copying Populated Folders Only


  1. Posts : 49
    32 Home Premium
       #1

    Copying Populated Folders Only


    I want to copy a bunch of folders. Some are populated with subfolders, some are not. I cannot find a folder property that tells me whether the folder itself is populated without right clicking and going to properties and looking at the "Contains" property.

    I want to be able to eyeball the folders that have subfolders and the ones that don't and then only copy the populated ones.

    Is there a property that will tell me this?

    P.S. I know I can then go to Folder Options and "Use checkboxes" to highlight the ones I want.

    Thanks
      My Computer


  2. Posts : 24,479
    Windows 7 Ultimate X64 SP1
       #2

    Welcome to Seven forums.
    There is no built-in folder option to see in a folder without opening it. You can get an idea though by hovering your cursor on folder. If this is what you mean?
    Copying Populated Folders Only-props.png
    click to enlarge
      My Computer


  3. Posts : 5,092
    Windows 7 32 bit
       #3

    According to the docs
    xcopy /s only copies subdirectories that are not empty.
    You'll have to try it to see how "empty" is defined. I believe it may copy if the directory contains another directory even if neither has any files. But you'd have to try and see.

    at a command prompt enter

    xcopy /?

    to get all the switches. Also there are some Guis around to make using XCopy easier such as "the xcopy tool" xxcopy etc..
      My Computer


  4. Posts : 49
    32 Home Premium
    Thread Starter
       #4

    I should have been clearer. I actually want to CUT the populated folders not COPY them. I want to leave behind the empty ones.

    Thanks
      My Computer


  5. Posts : 5,642
    Windows 10 Pro (x64)
       #5

    robocopy...
    Code:
    > robocopy source_directory dest_directory /S /MOVE
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 00:39.
Find Us