Issue with Robocopy only copying folders, not files, in Windows 7


  1. Posts : 4
    Windows 7 Professional, 64-bit
       #1

    Issue with Robocopy only copying folders, not files, in Windows 7


    Last week I used a robocopy tutorial on this site to create a backup script, and it was working fine. Today I tried to run this script, inputting new destination information but leaving everything else the same, and now it is copying all of the folders, but none of the files.

    It counts a total of 509 Dirs but 0 files--no skipped, no mismatch, no failed.

    My syntax/options are as follows:
    robocopy "source folder" "destination folder" /E /tee /log.Public_backup log.txt
    robocopy "source folder" "destination folder" /E /tee /log.Training_backup log.txt
    pause


    Does anyone see what might be causing this problem or have suggestions?

    The source folder is directory:\folder and the destination folder is directory:\folder\subfolder\subfolder, if that matters.
      My Computer


  2. Posts : 6,330
    Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64 +Linux_VMs +Chromium_VM
       #2

    It should default to all files (*.*), but you could put the *.* in the command to see if it makes a difference.
    i.e.
    robocopy "source folder" "destination folder" *.* /E /tee /log.Public_backup log.txt

    If that doesn't work can you post the actual commands you are using, with the real folder names ?
      My Computer


  3. Posts : 2,774
    Windows 7 Professional 64-bit
       #3

    I just downloaded and installed RichCopy 4, good move on my part? Will I be able to do CMD-line with RichCopy like RoboCopy?
      My Computer


  4. Posts : 4
    Windows 7 Professional, 64-bit
    Thread Starter
       #4

    @DavidE, I will try that next time I run into this issue. I was eventually able to get it to work--I removed the options and replaced them with the /MIR option, and then edited the commands so they were back to their original state--when I ran that, it worked and copied the files as well as the folders.

    However, last Friday my supervisor attempted to run the Robocopy and told me that it only copied the folders for him. Not sure what the difference is between when it works and when it doesn't.

    I will try your suggestion if this issue reoccurs and post an update to this thread.

    Thanks for your help.
      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 05:48.
Find Us