Windows 10: Windows 11's robocopy Fails to copy files that XCOPY Subsequently copies

Discus and support Windows 11's robocopy Fails to copy files that XCOPY Subsequently copies in Windows 10 Software and Apps to solve the problem; I'm hitting a problem with ROBOCOPY reporting a large number of FAILED copies. It doesn't tell me which files are failed, however having repeated the... Discussion in 'Windows 10 Software and Apps' started by EnglishmanInJapan, Oct 20, 2023.

  1. Windows 11's robocopy Fails to copy files that XCOPY Subsequently copies


    I'm hitting a problem with ROBOCOPY reporting a large number of FAILED copies. It doesn't tell me which files are failed, however having repeated the copy a couple of times, anything reported as being a "New File" immediately drew my attention, and indeed when checking the Target drive, I found that the files hadn't been copied.I'm copying from a NAS drive to a USB DAS drive with the command: robocopy "s": "d:" /s /e /r:3 /w:3 /z /LOG:c:\temp\copy0001.logFor the files that weren't copied, there appears to be no problems accessing them, attributes are simply "A" and I don't see anything untowa

    :)
     
    EnglishmanInJapan, Oct 20, 2023
    #1
  2. HAT
    hat Win User

    Copy entire drive?

    I need to copy the contents of an entire drive over to another one. Cloning applications aren't working for me because the source drive is larger than the destination drive (the amount of data actually present will fit on the destination drive no problem, however).

    I've tried xcopy and robocopy, but xcopy fails evidently because some file names are too long, and robocopy fails because it can't copy some protected system files.
     
  3. temp02 Win User
    Java.nio.file - Copying files

    You can't copy a folder, thats why it generates an exception (you are trying to copy a folder using a copy file function).
    You probably need to list all the files inside that folder and copy one by one
     
    temp02, Oct 20, 2023
    #3
  4. Windows 11's robocopy Fails to copy files that XCOPY Subsequently copies

    Robocopy vs Copy-paste  

    Actually, that command won't list files that are not being copied BUT it lists all the directories that it traverses. To suppress that. simply tack on a /NDL (No Directory Listing). In the sample output below, note that the folder I am mirroring has 820 directories and 2708 files. The folders are already synced so not a single file or directory is displayed in the output. Code:
     
    hsehestedt, Oct 20, 2023
    #4
Thema:

Windows 11's robocopy Fails to copy files that XCOPY Subsequently copies

Loading...
  1. Windows 11's robocopy Fails to copy files that XCOPY Subsequently copies - Similar Threads - 11's robocopy Fails

  2. Robocopy Skips Copying File

    in Windows 10 Gaming
    Robocopy Skips Copying File: I have a Dell computer running Windows 10. I use Task Scheduler to copy two files to two target destinations using Robocopy. Three of the files get copied but Robocopy skips one of them. If I run the command in a command window it returns a value of 0 meaning that there...
  3. Robocopy Skips Copying File

    in Windows 10 Software and Apps
    Robocopy Skips Copying File: I have a Dell computer running Windows 10. I use Task Scheduler to copy two files to two target destinations using Robocopy. Three of the files get copied but Robocopy skips one of them. If I run the command in a command window it returns a value of 0 meaning that there...
  4. Windows 11's robocopy Fails to copy files that XCOPY Subsequently copies

    in Windows 10 Gaming
    Windows 11's robocopy Fails to copy files that XCOPY Subsequently copies: I'm hitting a problem with ROBOCOPY reporting a large number of FAILED copies. It doesn't tell me which files are failed, however having repeated the copy a couple of times, anything reported as being a "New File" immediately drew my attention, and indeed when checking the...
  5. Robocopy element fail's in Robocopy but works fine in Copy command.

    in Windows 10 Software and Apps
    Robocopy element fail's in Robocopy but works fine in Copy command.: Command Prompt Copy Command Prompt works fine: Copy "C:\Users\Dennis\Documents\Tax Data\*.T*" "F:\Tax Data"Following command works fine except the Bolded element: ~*.T*Robocopy "C:\Users\Name\Documents\Tax Data" "F:\Tax Data" *.* /XF ~*.xls* ~*.docx ~*.pdf ~*.txt ~*.T* /E /XO...
  6. ROBOCOPY fails copying files from source root

    in Windows 10 Network and Sharing
    ROBOCOPY fails copying files from source root: When copying files from source root, it seems that ROBOCOPY see the files as directories and the resoult is, that the filename become a directoiry name on targetHow can I prevent thatMy code:$FileName = Get-Date.tostring"MM-dd-yyyy---HH-mm-ss"$oldpaths = Get-ChildItem...
  7. ROBOCOPY fails copying files from source root

    in Windows 10 Gaming
    ROBOCOPY fails copying files from source root: When copying files from source root, it seems that ROBOCOPY see the files as directories and the resoult is, that the filename become a directoiry name on targetHow can I prevent thatMy code:$FileName = Get-Date.tostring"MM-dd-yyyy---HH-mm-ss"$oldpaths = Get-ChildItem...
  8. ROBOCOPY fails copying files from source root

    in Windows 10 Software and Apps
    ROBOCOPY fails copying files from source root: When copying files from source root, it seems that ROBOCOPY see the files as directories and the resoult is, that the filename become a directoiry name on targetHow can I prevent thatMy code:$FileName = Get-Date.tostring"MM-dd-yyyy---HH-mm-ss"$oldpaths = Get-ChildItem...
  9. XCOPY is not copying subfolders

    in Windows 10 Installation and Upgrade
    XCOPY is not copying subfolders: XCOPY is not copying subfolders even though I am using the parameters /S /E.I'm also using /D to just update the data. I've tried using /C to ignore errors. And I've tried using ROBOCOPY but I can not get the subfolders copied.I've tried to contact HP, but they said it was a...
  10. Robocopy not copying newer file

    in Windows 10 Network and Sharing
    Robocopy not copying newer file: I have a file in a OneDrive folder named bernie3_journal.txt. It has today's date which is 10/7. I'm trying to use robocopy to copy the file to my son's OneDrive folder as shown below. The bernie3_journal.txt file in my son's OneDrive folder has a date stamp of 8/5. I've...